#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 64, &Wire);
void setup() {
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Address 0x3C for 128x32
display.display();
delay(2000);
display.clearDisplay(); //this line to clear previous logo
display.setTextSize(1);
display.setTextColor(WHITE); //without this no display
display.print(" HelloWorld!");//your TEXT here
display.setCursor(0, 25);
display.print(" Code Page 437!");//your TEXT here
display.display(); //to shows or update your TEXT
delay(1000);
}
void loop() {
//void testdrawchar(void) {
display.clearDisplay();
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(SSD1306_WHITE); // Draw white text
display.setCursor(0, 0); // Start at top-left corner
display.cp437(1); // Use full 256 char 'Code Page 437' font
//display.println(" El kit incluye un cable Micro USB para alimentación del módulo y conexión a su computadora en la fase de desarrollo. El usuario alambra su proyecto en los 2 protoboards de tal manera que tiene acceso a sus 25 pines GPIO.");
// Not all the characters will fit on the display. This is normal.
// Library will draw what it can and the rest will be clipped.
for(int16_t i=0; i<256; i++) {
if(i == '\n') display.write(' ');
else display.write(i);
}
display.display();
delay(2000);
}