Fork of Adafruit OLED driver to debug integration with RedBear Nano SPI driver
Fork of Adafruit_GFX by
Diff: Adafruit_SSD1306.cpp
- Revision:
- 22:6fc21acc8311
- Parent:
- 21:c7e6b6d6e296
--- a/Adafruit_SSD1306.cpp Thu Feb 26 00:05:12 2015 +0000 +++ b/Adafruit_SSD1306.cpp Thu Feb 26 11:27:37 2015 +0000 @@ -57,7 +57,10 @@ // bring out of reset rst = 1; // turn on VCC (9V?) -#ifdef NEVER +} + +void Adafruit_SSD1306::configure(uint8_t vccstate) +{ command(SSD1306_DISPLAYOFF); command(SSD1306_SETDISPLAYCLOCKDIV); command(0x80); // the suggested ratio 0x80 @@ -97,7 +100,7 @@ command(SSD1306_NORMALDISPLAY); command(SSD1306_DISPLAYON); - #endif + } // Set a single pixel