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:e653f6cb0a04
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Nov 21 13:31:43 2019 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+DigitalOut red1(p21); //Assign digital output value of red1 to mbed pin p21
+AnalogIn(p17);
+void do_something(int param1);
+ int global_variable;
+ main() { global_variable = 1;
+ while(1) /* Stay in this loop */
+ {
+ if( global_variable )
+ red1=1;
+ }
+}
\ No newline at end of file