#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET -1
#define SCREEN_ADDRESS 0X3C
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 oled(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
if(!oled.begin(SSD1306_SWITCHCAPVCC, 0X3C)){
Serial.println(F("failed to star SSD1306 OLED"));
while (1);
}
delay(1000);
oled.clearDisplay();
oled.setTextSize(1);
oled.setTextColor(WHITE);
oled.setCursor (10, 10);
oled.println("1.SALIMOS MUY TARDE");
oled.setCursor (10, 20);
oled.println("2.BOLIVIA CAMPEON DE LA COPA AMERICA");
oled.setCursor (10, 40);
oled.println("3.HACE MUCHO FRIO");
oled.setCursor (10, 50);
oled.println("4.AGUANTE LA CATO");
oled.display();
}
void loop() {
// put your main code here, to run repeatedly:
}
Loading
ssd1306
ssd1306