Demo of Adafruit_SSD1306 graphics library and SPI interface on RedBear NANO nRF51822 board
Dependencies: Adafruit_GFX_nano SPI_Demo_Nano
This is a test of the RedBear nano board and the Adafruit oled display. Currently not working because of some problem with the SPI driver which I can't understand.
Diff: main.cpp
- Revision:
- 3:6122dfbc9d9e
- Parent:
- 2:7e5609174292
- Child:
- 4:9decf12340fa
diff -r 7e5609174292 -r 6122dfbc9d9e main.cpp --- a/main.cpp Wed Feb 25 20:11:14 2015 +0000 +++ b/main.cpp Wed Feb 25 20:32:59 2015 +0000 @@ -19,13 +19,14 @@ #include "mbed.h" #include "spi_master.h" +#include "Adafruit_SSD1306.h" DigitalOut spi_cs(P0_10); SPIClass SPI1(NRF_SPI1); Serial pc(USBTX, USBRX); - +Adafruit_SSD1306_nrf gOled1(&SPI1,A4,A3,D2); int main(void) {