#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_ADDR 0x3C
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
if(!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)){
Serial.println(F("OLED initialization failed :("));
while(true);
}
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0);
// F stores the text in flash memory rather than SRAM
display.println(F("1 option A \n2 option B \n3 option C"));
display.display();
}
void loop() {
// // put your main code here, to run repeatedly:
// delay(10); // this speeds up the simulation
// display.println(F("1 option A /n 2 option B /n option C"
// ))
// tone(26, 20, 1);
}