stephen reidy
/
Lab1_bounce
printing joystick when active
Diff: main.cpp
- Revision:
- 1:9c6ad6449efd
- Parent:
- 0:56d38c9cd647
- Child:
- 2:79baf68e700e
diff -r 56d38c9cd647 -r 9c6ad6449efd main.cpp --- a/main.cpp Tue May 04 08:22:18 2021 +0000 +++ b/main.cpp Tue May 04 08:36:13 2021 +0000 @@ -7,8 +7,6 @@ InterruptIn joystickRight(p16); // joystick Right DigitalOut led(LED1); // LED 1 digital out - - int main() { @@ -27,13 +25,11 @@ if (joystickUp == 1) { printf( "joystickUp is active \r\n"); + wait(1); } if (joystickRight == 1) { - printf( "joystickRight is active \r\n"); - - + printf( "joystickRight is active \r\n"); } - } }