#include #include #include int Power = 11; int PIN = 12; #define NUMPIXELS 1 Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); // Define the U8G2 display object U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); void setup() { // Initialize the display u8g2.begin(); // u8g2.setFont(u8g2_font_HelvetiPixel_tr); // Set the font (you can change to other fonts) u8g2.setFont( u8g2_font_helvB14_tr); // Set the font (you can change to other fonts) pinMode(Power,OUTPUT); digitalWrite(Power, HIGH); Serial.begin(9600); } void loop() { u8g2.firstPage(); do { // Clear the screen u8g2.clearBuffer(); // Display "Hello, World!" at position (0, 30) u8g2.setCursor(0, 10); u8g2.print("HELLO, WORLD!"); u8g2.setCursor(0, 25); u8g2.print("HELLO, WORLD!"); u8g2.setCursor(0, 40); u8g2.print("HELLO, WORLD!"); u8g2.setCursor(0, 55); u8g2.print("HELLO, WORLD!"); u8g2.setCursor(0, 70); u8g2.print("HELLO, WORLD!"); // Display other text or graphics here if needed } while (u8g2.nextPage()); delay(1000); // Delay for one second before updating the display }