#include <avr/pgmspace.h> // memory
// #include <TinyDebug.h> // Wokwi Serial Monitor https://github.com/wokwi/TinyDebug
#include "SSD1306_minimal.h" // https://github.com/kirknorthrop/SSD1306_minimal/tree/master
SSD1306_Mini oled; // Declare the OLED object
void setup() {
oled.init(0x3C); // Initialize display with address
oled.clear(); // Clear display
helloOled();
// Debug.println("Hello, World!"); // Wokwi Serial monitor
}
void loop() {
}
void helloOled() {
oled.startScreen();
oled.clear();
oled.cursorTo(0, 0);
oled.printString("Hello, World!");
for (int i = 1; i < 7; i++) { // eight rows
oled.cursorTo(0, i);
oled.printChar(i + '0');
}
oled.cursorTo(7, 6); // horizontal by pixel ("7" pixels clears first character)
oled.printString(" 11111111");
oled.cursorTo(0, 7); // eight rows
oled.printString("012345678901234567"); // string uses array of char
}