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.
Dependencies: mbed SerialInputReactionHandler
Revision 0:27eb52652bc3, committed 2020-10-21
- Comitter:
- aktk
- Date:
- Wed Oct 21 18:08:17 2020 +0000
- Commit message:
- test
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.gitignore Wed Oct 21 18:08:17 2020 +0000 @@ -0,0 +1,4 @@ +.build +.mbed +projectfiles +*.py*
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SerialInputReactionHandler.lib Wed Oct 21 18:08:17 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/aktk/code/SerialInputReactionHandler/#ec916055f0dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Oct 21 18:08:17 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "SerialInputReactionHandler.h"
+
+int main()
+{
+ // Initialise the digital pin LED1 as an output
+ DigitalOut led(LED1);
+ SerialInputReactionHandler reactor;
+ Serial pc(USBTX, USBRX, 921600);
+
+ pc.attach(callback(&reactor, &SerialInputReactionHandler::key_bind));
+
+ while (true) {
+ led = !led;
+ wait(.5);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 21 18:08:17 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file