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.
Diff: main.cpp
- Revision:
- 2:302b3ed98b81
- Parent:
- 0:ee386c3c3a80
- Child:
- 3:3e849d835d69
diff -r 60594d016407 -r 302b3ed98b81 main.cpp
--- 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