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 Exercise4 by
Diff: main.cpp
- Revision:
- 2:28f6fe278532
- Parent:
- 1:245bc5eb1bbe
--- a/main.cpp Mon Feb 24 13:29:48 2020 +0000 +++ b/main.cpp Mon Feb 24 14:05:41 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 +This is a slightly harder exercise but should be good majour hint use << and >>. +in this exercise i would like you to create a function that will take in an 8-bit, 1byre number and then display it on the leds in biary. -In the main function I expect to see the on and off functions replaced with this new one. - -best of luck. +In the main I would like to see the code count up in binary. ***************************************************************/ // these functions initializes the led pins and functions associated with them these are technically c++ but dont worry to much about this yet
