lab1 part2
Dependencies: PinDetect lab1_part2 mbed
Diff: main.cpp
- Revision:
- 8:db9bcb92ff2a
- Parent:
- 0:ea651607da73
- Child:
- 9:e5c16d5c49d7
--- a/main.cpp Fri Sep 02 21:35:29 2022 +0000 +++ b/main.cpp Tue Sep 06 04:59:30 2022 +0000 @@ -8,7 +8,7 @@ PinDetect pbbright(p6); float volatile brightness = 0.5f; void pbdim_hit_callback (void) { - if(1.0f > brightness ||brightness >= 0.0f) { + if(1.0f > brightness || brightness >= 0.0f) { brightness+= 0.1f; } }