@@ -36,25 +36,28 @@ void ssd1306_Init(void)
WriteCommand(0x00);
WriteCommand(0x40 | 0x00); // line #0
WriteCommand(0x8D);
WriteCommand(0x14); //10 or 14 if not externalvcc
WriteCommand(0x20);
WriteCommand(0xA0 | 0x1); // segremap
WriteCommand(0xC8); // comscandep
// WriteCommand(0xA0 | 0x1); // segremap (normal)
WriteCommand(0xA0); // segremap (flip)
// WriteCommand(0xC8); // comscandec (normal)
WriteCommand(0xC0); // comscandec (flip)
WriteCommand(0xDA); // setcompins
WriteCommand(0x02);
WriteCommand(0x81); // contrast
WriteCommand(0x0F); // contrast value. 8f is a good one.
WriteCommand(0xD9);
WriteCommand(0xF1); //22 or F1 if not externalvcc
WriteCommand(0xDB);
WriteCommand(0x40);
WriteCommand(0xA4); // dispalyallon_resume
WriteCommand(0xA6); // normaldisplay
WriteCommand(0xAF); // display on
}
// Times New Roman font
const char fontData[240][5] =
Status change: