oled code
Diff: Adafruit_SSD1306.cpp
- Revision:
- 19:e16d3a603d50
- Parent:
- 18:a267f00528be
- Child:
- 20:4f1803f9d4e7
--- a/Adafruit_SSD1306.cpp Tue Feb 07 23:52:12 2017 +0000 +++ b/Adafruit_SSD1306.cpp Thu Feb 06 13:20:35 2020 +0000 @@ -61,8 +61,8 @@ command(SSD1306_SETSTARTLINE | 0x0); // line #0 command(SSD1306_CHARGEPUMP); - command((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); - + command(0x14);//command((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); +// command(SSD1306_MEMORYMODE); command(0x00); // 0x0 act like ks0108 @@ -80,7 +80,7 @@ command((vccstate == SSD1306_EXTERNALVCC) ? 0x22 : 0xF1); command(SSD1306_SETVCOMDETECT); - command(0x40); + command(0x30); command(SSD1306_DISPLAYALLON_RESUME);