RASHID P
/
mbed_binary_counter
Binary counter from 0000 to 1111
Revision 0:bd48a459a539, committed 2019-12-17
- Comitter:
- rashidpkvm
- Date:
- Tue Dec 17 13:53:58 2019 +0000
- Commit message:
- NXP LPC11U24
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 17 13:53:58 2019 +0000 @@ -0,0 +1,14 @@ + +#include "mbed.h" + +BusOut myleds(LED1, LED2, LED3, LED4); + +int main() { + while(1) { + for(int i=0; i<16; i++) { + //myleds = 1 << i; + myleds = i; + wait(1); + } + } + } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 17 13:53:58 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file