// Proyecto simple usando Arduino UNO y la pantalla OLED 128x64 SSD1306 IIC, creado por upir, 2023
// Canal de YouTube: https://www.youtube.com/@upir
// Más videos con Arduino UNO y pantallas OLED: https://www.youtube.com/@upir
#include <Arduino.h>
#include <U8g2lib.h>
#include <Wire.h> // Librería necesaria para la comunicación I2C
// Inicialización para la pantalla OLED utilizada (SSD1306 128x64 I2C).
// U8G2_R0 significa sin rotación. U8X8_PIN_NONE para el pin de reset si no se usa.
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
// Imágenes de Lopaka editor: https://lopaka.app/
// Para generar tus propias imágenes, usa la configuración de image2cpp para U8g2 (MSB first).
static const unsigned char image_LOGOSTORE_bits[] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x7f,0x00,0x80,0xff,0x07,0x00,0x00,0xfc,0xff,0x03,0xe0,0xff,0x1f,0x00,0x00,0xff,0xff,0x0f,0xf8,0xff,0x7f,0x00,0xc0,0xff,0xff,0x1f,0xfc,0xff,0xff,0x00,0xe0,0xff,0xff,0x3f,0xd5,0xff,0xff,0x03,0xf0,0xfe,0xff,0xff,0xff,0xff,0xff,0x07,0xf8,0xfd,0xff,0xff,0xdf,0xff,0xff,0x07,0xf8,0xff,0xff,0xff,0xff,0xff,0xff,0x0f,0xfc,0x01,0x00,0xe0,0xff,0xff,0xff,0x1f,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0xfe,0xff,0xff,0xff,0xff,0xdf,0xff,0x3f,0xf9,0x3f,0xc0,0x1f,0x00,0x01,0xfe,0x7f,0xff,0x1f,0x80,0xff,0xff,0x00,0xfc,0x7f,0xff,0x0f,0x00,0xff,0x7f,0x00,0xf8,0x7f,0xff,0x07,0x00,0x7e,0x3f,0x00,0xf0,0x7f,0xff,0x03,0x00,0xfe,0x3f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xf8,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xf4,0x1f,0x00,0xe0,0xff,0xf7,0x03,0x00,0xec,0x1f,0x00,0xe0,0xff,0x5f,0x01,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0x60,0xdb,0xff,0x03,0x00,0xbc,0x1e,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0x00,0xf8,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0x1f,0x00,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xef,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xf7,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xf8,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xfc,0x1f,0x00,0xe0,0xff,0xff,0x03,0x00,0xbc,0x0a,0x00,0xe0,0xff,0xc0,0x03,0x00,0xdc,0x1f,0x00,0xe0,0xff,0x55,0x01,0x00,0xa4,0x0a,0x00,0xa0,0xaa,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
void setup(void) {
u8g2.begin(); // Inicia la librería U8g2
}
void loop(void) {
u8g2.clearBuffer();
u8g2.setFontMode(1);
u8g2.setBitmapMode(1);
u8g2.drawFrame(3, 3, 116, 58);
u8g2.drawXBM(32, -1, 64, 64, image_LOGOSTORE_bits);
u8g2.sendBuffer();
}Loading
aitewinrobot-esp32c3-supermini
aitewinrobot-esp32c3-supermini