University of Plymouth - Stages 1, 2 and 3 / Mbed OS Task531
Revision:
2:302b3ed98b81
Parent:
0:ee386c3c3a80
Child:
3:3e849d835d69
--- a/main.cpp	Thu Jul 13 14:56:45 2017 +0000
+++ b/main.cpp	Fri Sep 20 13:52:32 2019 +0000
@@ -1,11 +1,11 @@
 #include "mbed.h"
-//#include "spi.h"
-
-PwmOut mypwm(PWM_OUT);
 
 //This GPIO is used for Chip Select
 DigitalOut DAC_CS(D10);
 
+//Status LED
+DigitalOut led(LED1,1);
+
 //SPI Object
 SPI spi(D11, D12, D13);
 
@@ -43,4 +43,7 @@
     
     //Disable the selected slave device (and update the output)
     DAC_CS = 1;
+    
+    //Status
+    led = !led;
 }
\ No newline at end of file