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.

Revision:
7:029f4ce1f8b2
Parent:
4:9decf12340fa
--- a/main.cpp	Wed Feb 25 22:01:10 2015 +0000
+++ b/main.cpp	Wed Feb 25 22:56:59 2015 +0000
@@ -29,32 +29,27 @@
 
 SPIClass SPI1(NRF_SPI1);
 
-Serial pc(USBTX, USBRX);
 //Adafruit_SSD1306_nrf gOled1(&SPI1,A4,A3,D2);// SPI, DC, RST, CS
 
 int main(void)
 {   
-    pc.printf("SPI Demo Start \r\n");
         led = 1; // off
     //SPI1.begin();
     SPI1.begin(P0_8, P0_9, P0_11);//SCK, MOSI, MISO
-    pc.printf("Step 1 \r\n");
     rst = 1;
     // VDD (3.3V) goes high at start, lets just chill for a ms
     wait_ms(1);
     // bring reset low
-    pc.printf("Step 2 \r\n"); 
         rst = 0;
     // wait 10ms
     wait_ms(10);
     // bring out of reset
     rst = 1;
     // turn on VCC (9V?)
-    pc.printf("Step 3 \r\n"); 
     SPI1.transfer(0xAE);// SSD1306_DISPLAYOFF
     SPI1.transfer(0xD5);// SSD1306_SETDISPLAYCLOCKDIV
     SPI1.transfer(0x80);// // the suggested ratio 0x80
-    pc.printf("Step 4 \r\n");                             
+                      
     led = 0; // on
     wait(1);
     led = 1;