Quick test program to check LPC1768 SPI interface to 25AA080A Microchip SPI 8k EEPROM

Dependencies:   mbed

Fork of SPI_HelloWorld_Mbed by mbed official

Revision:
2:853d24908e9f
Parent:
1:d1403e3aa88b
--- a/main.cpp	Thu Nov 19 17:07:34 2015 +0000
+++ b/main.cpp	Thu Nov 19 17:08:41 2015 +0000
@@ -51,7 +51,7 @@
     spi.write(0x00);
     for (int i=0; i<32; i++)
         {
-            ret_val = spi.write(0x01);
+            ret_val = spi.write(0x01); // The address will increment on each read from here
             pc.printf("Reading = 0x%X \t %d\n\r", ret_val, ret_val);
             wait(0.2);
         }