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
Fork of Exercise6 by
Diff: main.cpp
- Revision:
- 2:20562827e8dd
- Parent:
- 1:245bc5eb1bbe
- Child:
- 3:6875cf4af4a1
--- a/main.cpp Mon Feb 24 13:29:48 2020 +0000 +++ b/main.cpp Mon Feb 24 14:06:14 2020 +0000 @@ -1,13 +1,9 @@ #include "mbed.h" /**************************************************************** -In this exercise I would like you to make one function called "ToggleAll" -this function should switch the state of the led from its current state -you can figure out the current state by typing "= led1;" -in this function I expect to see and minimal lines of code as possible +In this exercise a bit of if statment use! -In the main function I expect to see the on and off functions replaced with this new one. - -best of luck. +I would like you, whist using the function made in the prevoiuse exercise to make the yellow leds to count in binary and when the number is an odd number the red LED's +light up. ***************************************************************/ // these functions initializes the led pins and functions associated with them these are technically c++ but dont worry to much about this yet
