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 3:b88fff5420e2, committed 2018-01-12
- Comitter:
- lukeoftheaura
- Date:
- Fri Jan 12 19:28:54 2018 +0000
- Parent:
- 2:19001d314c68
- Child:
- 4:6192f1728e75
- Commit message:
- meh;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jan 12 19:19:09 2018 +0000
+++ b/main.cpp Fri Jan 12 19:28:54 2018 +0000
@@ -12,13 +12,14 @@
int main() {
for(;;) {
+ LED = button1;
if(button1 == 0) {
key.keyPress('c');
- bt1state = true;
}
- else if(bt1state == true) {
- key.keyRelease();
- bt1state = false;
- }
+ wait(0.1);
+ key.keyPress('c');
+// else if(button1 == 1) {
+// key.keyPress('c');
+// }
}
}