Exemplo (Nucleo_BLE_HeartRate) X-NUCLEO-IDB04A1

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Revision:
0:0bb81c079a85
diff -r 000000000000 -r 0bb81c079a85 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 02 21:51:39 2016 +0000
@@ -0,0 +1,14 @@
+#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