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.
Dependencies: Adafruit_GFX_nano SPI_Demo_Nano
Diff: main.cpp
- Revision:
- 9:bbe01bf9a3ef
- Parent:
- 8:971ea27171dd
- Child:
- 10:d9a6a2fede8c
diff -r 971ea27171dd -r bbe01bf9a3ef main.cpp
--- a/main.cpp Wed Feb 25 23:27:42 2015 +0000
+++ b/main.cpp Wed Feb 25 23:43:51 2015 +0000
@@ -51,13 +51,17 @@
SPIClass SPI1(NRF_SPI1);
-//Adafruit_SSD1306_nrf gOled1(&SPI1,A4,A3,D2);// SPI, DC, RST, CS
+//Adafruit_SSD1306_nrf gOled1(A4,A3,D2);// SPI, DC, RST, CS
int main(void)
{
led = 1; // off
- SPI1.begin(P0_8, P0_9, P0_11);//SCK, MOSI, MISO
+ wait (0.3);
+ led = 0; // ON
+ wait (0.3);
+ led = 1; // off
+ // SPI1.begin(P0_8, P0_9, P0_11);//SCK, MOSI, MISO
//Display initialisation
rst = 1;