Modify the BlinkTicker example to use LED1, LED2, and LED3 for showing the three least significant bits of an 8 bit counter
Diff: main.cpp
- Revision:
- 2:d6c1c30a35a7
- Parent:
- 1:47aa08bd406d
- Child:
- 3:22314e85092e
--- a/main.cpp Fri Nov 09 18:12:42 2018 +0000 +++ b/main.cpp Tue Nov 13 13:40:38 2018 +0000 @@ -6,7 +6,7 @@ DigitalOut led2(LED2); DigitalOut led3(LED3); -int counter = 0; +int8_t counter = 0; void toggle_leds_by_least_significant_bytes() { if(counter&1){