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:
- 0:7acc8702ac89
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Nov 27 01:27:07 2017 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+SPI device(SPI_MOSI, SPI_MISO, SPI_SCK);
+
+int main() {
+ int i = 0;
+ while(1) {
+ device.write(0x55);
+ device.write(i++);
+ device.write(0xE0);
+ wait_us(50);
+ }
+}
\ No newline at end of file