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.cpp
- Revision:
- 14:edb3c36aa1a7
- Parent:
- 9:ddb97c9850a2
- Child:
- 17:56015e4834e6
--- a/Adafruit_GFX.cpp Tue Oct 21 02:30:58 2014 +0000 +++ b/Adafruit_GFX.cpp Sat Oct 25 20:41:38 2014 +0000 @@ -349,7 +349,6 @@ drawFastHLine(a, y, b-a+1, color); } } -#endif void Adafruit_GFX::drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) { @@ -362,6 +361,7 @@ } } } +#endif size_t Adafruit_GFX::writeChar(uint8_t c) {