A derived version of the BSD licensed Adafrut GFX library for the SSD1351 controller for an OLED 128x 96or 128x128 display using SPI
Fork of Adafruit_GFX by
You can print russian. (font edited).
class SPIPreInit : public SPI { public: SPIPreInit(PinName mosi, PinName miso, PinName clk) : SPI(mosi,miso,clk) { format(8,3); frequency(25000000); }; }; SPIPreInit gSpi(PB_15,NC,PB_13); PinName mosi(sda), PinName miso, PinName clk(scl) Adafruit_SSD1351_Spi oled(gSpi,PB_14,PB_1,PB_2); PinName DC, PinName RST, PinName CS
Adafruit_GFX_Config.h@13:8f03f908f22a, 2014-10-21 (annotated)
- Committer:
- nkhorman
- Date:
- Tue Oct 21 02:30:58 2014 +0000
- Revision:
- 13:8f03f908f22a
- Parent:
- 11:86909e6db3c8
- Child:
- 17:56015e4834e6
flesh out the config defines
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nkhorman | 13:8f03f908f22a | 1 | #ifndef _ADAFRUIT_GFX_CONFIG_H_ |
nkhorman | 13:8f03f908f22a | 2 | #define _ADAFRUIT_GFX_CONFIG_H_ |
nkhorman | 13:8f03f908f22a | 3 | |
nkhorman | 13:8f03f908f22a | 4 | // Uncomment this to turn off the builtin splash |
nkhorman | 13:8f03f908f22a | 5 | //#define NO_SPLASH_ADAFRUIT |
nkhorman | 13:8f03f908f22a | 6 | |
nkhorman | 13:8f03f908f22a | 7 | // Uncomment this to enable all functionality |
nkhorman | 13:8f03f908f22a | 8 | //#define GFX_WANT_ABSTRACTS |
nkhorman | 13:8f03f908f22a | 9 | |
nkhorman | 13:8f03f908f22a | 10 | // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts |
nkhorman | 13:8f03f908f22a | 11 | //#define GFX_SIZEABLE_TEXT |
nkhorman | 13:8f03f908f22a | 12 | |
nkhorman | 13:8f03f908f22a | 13 | |
nkhorman | 13:8f03f908f22a | 14 | #endif |