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
Diff: Adafruit_GFX_Config.h
- Revision:
- 17:56015e4834e6
- Parent:
- 13:8f03f908f22a
--- a/Adafruit_GFX_Config.h Tue Nov 11 22:08:20 2014 +0000 +++ b/Adafruit_GFX_Config.h Wed Feb 24 12:24:42 2016 +0000 @@ -1,11 +1,10 @@ #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 +#define GFX_WANT_ABSTRACTS // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts //#define GFX_SIZEABLE_TEXT