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
Revision 3:9efbb5b3166e, committed 2018-01-18
- Comitter:
- Nydrel
- Date:
- Thu Jan 18 02:17:11 2018 +0000
- Parent:
- 2:c2f5a8ab5433
- Child:
- 4:840b77c5f7c1
- Commit message:
- Change - Now the LED is inactive when the pushbutton is not being pressed
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jan 18 02:15:24 2018 +0000
+++ b/main.cpp Thu Jan 18 02:17:11 2018 +0000
@@ -6,6 +6,6 @@
int main() {
pb.mode(PullUp);
while(1) {
- myled = pb;
+ myled = !pb;
}
}
\ No newline at end of file