Simple Murata Type ABZ test using online compiler.

Files at this revision

API Documentation at this revision

Comitter:
yabool2001
Date:
Sun Oct 25 19:20:00 2020 +0000
Commit message:
Simple Murata Type ABZ test using online compiler.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 25 19:20:00 2020 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "platform/mbed_thread.h"
+
+#define BLINKING_RATE_MS            500
+
+DigitalOut led2 ( PB_2 ) ;
+ 
+int main() {
+    while ( true ) {
+        led2 = !led2 ;
+        thread_sleep_for(BLINKING_RATE_MS);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Sun Oct 25 19:20:00 2020 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os.git/#8ef0a435b2356f8159dea8e427b2935d177309f8