Roman Kesler / Mbed 2 deprecated Nucleo_toggle_ios

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
HexRoman
Date:
Thu Jul 11 15:16:05 2019 +0000
Commit message:
a

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld 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	Thu Jul 11 15:16:05 2019 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+ 
+#define IOS (0xA0) // PA_5 + PA_7
+ 
+PortOut myIOs(PortA, IOS);
+ 
+int main() {
+    while(1) {   
+        myIOs = myIOs ^ IOS; // Toggle IOs level
+        wait(0.5); // 500 ms
+    }
+}
+ 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jul 11 15:16:05 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file