Task 5.3.1

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Fri Sep 20 13:52:32 2019 +0000
Parent:
1:60594d016407
Child:
3:3e849d835d69
Commit message:
2019

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
--- 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
--- a/mbed-os.lib	Thu Jul 13 14:56:45 2017 +0000
+++ b/mbed-os.lib	Fri Sep 20 13:52:32 2019 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#8828635da469162cf2854b5287561c663fb96e72
+https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed_app.json	Fri Sep 20 13:52:32 2019 +0000
@@ -0,0 +1,3 @@
+{
+    "requires": ["bare-metal"]
+}
\ No newline at end of file