Modified library to add delay after releasing reset. This is needed because the reset signal is enabling an LDO to provide power to the display and it needs time to turn on.
Fork of Adafruit_GFX by
Revision 13:8f03f908f22a, committed 2014-10-21
- Comitter:
- nkhorman
- Date:
- Tue Oct 21 02:30:58 2014 +0000
- Parent:
- 12:7964c2cfdebc
- Child:
- 14:edb3c36aa1a7
- Commit message:
- flesh out the config defines
Changed in this revision
--- a/Adafruit_GFX.h Tue Oct 21 02:16:49 2014 +0000
+++ b/Adafruit_GFX.h Tue Oct 21 02:30:58 2014 +0000
@@ -20,11 +20,7 @@
#ifndef _ADAFRUIT_GFX_H_
#define _ADAFRUIT_GFX_H_
-// Uncomment this on to enable all functionality
-//#define GFX_WANT_ABSTRACTS
-
-// Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts
-//#define GFX_SIZEABLE_TEXT
+#include "Adafruit_GFX_Config.h"
static inline void swap(int16_t &a, int16_t &b)
{
--- a/Adafruit_GFX_Config.h Tue Oct 21 02:16:49 2014 +0000 +++ b/Adafruit_GFX_Config.h Tue Oct 21 02:30:58 2014 +0000 @@ -0,0 +1,14 @@ +#ifndef _ADAFRUIT_GFX_CONFIG_H_ +#define _ADAFRUIT_GFX_CONFIG_H_ + +// Uncomment this to turn off the builtin splash +//#define NO_SPLASH_ADAFRUIT + +// Uncomment this to enable all functionality +//#define GFX_WANT_ABSTRACTS + +// Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts +//#define GFX_SIZEABLE_TEXT + + +#endif \ No newline at end of file
--- a/Adafruit_SSD1306.cpp Tue Oct 21 02:16:49 2014 +0000 +++ b/Adafruit_SSD1306.cpp Tue Oct 21 02:30:58 2014 +0000 @@ -23,9 +23,6 @@ #include "mbed.h" #include "Adafruit_SSD1306.h" -/// Uncomment this define in __FILE to disable the AdaFruit splash image -//#define NO_SPLASH_ADAFRUIT - #define SSD1306_SETCONTRAST 0x81 #define SSD1306_DISPLAYALLON_RESUME 0xA4 #define SSD1306_DISPLAYALLON 0xA5
