From aeed86ec095d171616fc86675fee16a6f6221c6a Mon Sep 17 00:00:00 2001 From: Seth Samuel Date: Tue, 22 Oct 2024 23:01:44 +1300 Subject: [PATCH] attempted screen hello world --- blockBreaker.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/blockBreaker.ino b/blockBreaker.ino index 3da99f5..93882bb 100644 --- a/blockBreaker.ino +++ b/blockBreaker.ino @@ -4,7 +4,7 @@ #include //screen setup -U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R2, 17, 21, 20); +U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R2, 17, 20, 21); uint8_t *buf; char outString[99]; @@ -15,9 +15,13 @@ void setup() { u8g2.initDisplay(); u8g2.clearDisplay(); u8g2.setPowerSave(0); + u8g2.setFont(u8g2_font_ncenB14_tr); + + u8g2.clearBuffer(); + sprintf(outString,"helloworld"); + u8g2.drawStr(7,35,outString); + u8g2.sendBuffer(); } -//windows test -//linux test void loop() { // put your main code here, to run repeatedly: