imu for l432kc

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sunninety1
Date:
Tue Dec 04 04:23:40 2018 +0000
Child:
1:f8ed70330216
Commit message:
Bluetoothhhh

Changed in this revision

mbed.bld Show annotated file Show diff for this revision Revisions of this file
test.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 04 04:23:40 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test.cpp	Tue Dec 04 04:23:40 2018 +0000
@@ -0,0 +1,35 @@
+
+
+#include "mbed.h"
+
+Serial        serial(D8, D2);
+InterruptIn   userButton(USER_BUTTON);
+
+void sendSerial(void) {
+    if(serial.writeable()) {
+        serial.printf("%.2f ",123.5);
+        wait_ms(500);   // lag to debounce the button
+    }
+}
+
+int main(void) {
+    userButton.fall(callback(sendSerial));
+        
+    while(1) {}
+}
+
+/*
+#include "mbed.h"
+
+Serial  pc(USBTX, USBRX);
+Serial  serial(PA_9,PA_10);
+char    data[10];
+
+int main() {
+    while(1) {
+        if(serial.readable() ) {
+            serial.scanf("%9s", data);
+            pc.printf("Serial data: %s\r\n", data);
+        }
+    }
+}*/
\ No newline at end of file