Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 17:f4d16c036914, committed 2018-12-08
- Comitter:
- faydrus
- Date:
- Sat Dec 08 15:54:37 2018 +0000
- Parent:
- 16:7fb1d4d3525d
- Commit message:
- OLED display comes up using a bit-banged SPI driver.
Changed in this revision
| Adafruit_SSD1306.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7fb1d4d3525d -r f4d16c036914 Adafruit_SSD1306.h --- a/Adafruit_SSD1306.h Tue Nov 11 22:08:20 2014 +0000 +++ b/Adafruit_SSD1306.h Sat Dec 08 15:54:37 2018 +0000 @@ -25,6 +25,7 @@ #include "mbed.h" #include "Adafruit_GFX.h" +#include "SWSPI.h" #include <vector> #include <algorithm> @@ -100,7 +101,7 @@ * @param rawHeight - the vertical number of pixels for the display, defaults to 32 * @param rawWidth - the horizonal number of pixels for the display, defaults to 128 */ - Adafruit_SSD1306_Spi(SPI &spi, PinName DC, PinName RST, PinName CS, uint8_t rawHieght = 32, uint8_t rawWidth = 128) + Adafruit_SSD1306_Spi(SWSPI &spi, PinName DC, PinName RST, PinName CS, uint8_t rawHieght = 32, uint8_t rawWidth = 128) : Adafruit_SSD1306(RST, rawHieght, rawWidth) , cs(CS,true) , dc(DC,false) @@ -149,7 +150,7 @@ }; DigitalOut2 cs, dc; - SPI &mspi; + SWSPI &mspi; }; /** This is the I2C SSD1306 display driver transport class