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.
Fork of Nucleo-mbed-os-example-blinky by
Diff: main.cpp
- Revision:
- 5:7db87ff5ed38
- Parent:
- 4:634ee710cadb
- Child:
- 6:a40d570cbe50
diff -r 634ee710cadb -r 7db87ff5ed38 main.cpp
--- a/main.cpp Tue Jan 17 20:31:53 2017 +0000
+++ b/main.cpp Sat Jan 21 09:03:18 2017 +0000
@@ -19,6 +19,10 @@
myled = 0; // LED is OFF
wait(1.0); // 1 sec
if (pressed) {
+ SPI *s = new SPI(PA_7, PA_6, PA_8);
+ s->frequency(40000000);
+ s->write(0xff);
+ delete s;
deepsleep();
pressed = false;
}
