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.
Revision 0:49ecdf86d825, committed 2017-11-27
- Comitter:
- andeevan
- Date:
- Mon Nov 27 01:25:07 2017 +0000
- Commit message:
- Initial build from template
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 Mon Nov 27 01:25:07 2017 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+#define IOS (0xA0) // PA_5 + PA_7
+
+PortIn ioSet(PortA, IOS);
+
+DigitalOut ledset(LED1);
+
+int main() {
+ while(1) {
+ if (ioSet.read() != IOS) { // Any of the 2 IOs is low
+ ledset = !ledset; // Toggle LED state
+ wait(0.2);
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 27 01:25:07 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/e7ca05fa8600 \ No newline at end of file