Hello,
I want to let my adafruit ssd1306 to show logo, but it just show some points that messed. My OLED
SDA and SCL pin is on 13 and 13, not on A4 and A5, and it display text very well. Here's my code
#include <Adafruit_ssd1306syp.h>
#define SDA_PIN 12
#define SCL_PIN 13
Adafruit_ssd1306syp display(SDA_PIN,SCL_PIN);
static const unsigned char PROGMEM cloud_logo_bmp[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30, 0x60, 0xC0, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x1F, 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, 0x80, 0xC0, 0x71, 0x10, 0x08, 0x0C, 0x04,
0x06, 0x02, 0x02, 0x02, 0x02, 0x02, 0x06, 0x04, 0x0C, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x02,
0x06, 0x04, 0x80, 0xF8, 0x0E, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x07, 0x00, 0xC0, 0xF0, 0x18, 0x08, 0x08, 0xD8, 0x70,
0x00, 0xC0, 0xF8, 0x00, 0x00, 0xC0, 0xF0, 0x30, 0x00, 0x80, 0xE0, 0x30, 0x18, 0x88, 0xF8, 0xFE,
0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x40, 0x60, 0x30, 0x10, 0x18, 0x08, 0x00, 0x03, 0x1F,
0x70, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0x40, 0x60, 0x20,
0x30, 0x10, 0x13, 0x30, 0x60, 0xC1, 0x83, 0x02, 0x02, 0x03, 0x81, 0xC0, 0x60, 0x31, 0x33, 0x32,
0x63, 0xC1, 0x83, 0x83, 0xC0, 0x41, 0x63, 0x22, 0x23, 0x61, 0xC1, 0x83, 0x03, 0x00, 0x00, 0x00,
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
0x03, 0x02, 0x02, 0x03, 0x03, 0x01
};
void setup()
{
delay(1000);
display.initialize();
}
void loop()
{
display.clear();
display.drawBitmap(20, 10, cloud_logo_bmp, 60, 35, 1);
display.update();
delay(1000);
display.clear();
}
Thanks:)!