11
Dependencies: mbed N5110 Joystick
Diff: main.cpp
- Revision:
- 2:4fd751cc1af7
- Parent:
- 1:77e6588be25b
--- a/main.cpp Fri Apr 09 07:00:20 2021 +0000 +++ b/main.cpp Wed Apr 14 14:12:26 2021 +0000 @@ -11,10 +11,10 @@ DigitalOut led(LED1); Ticker flipper; -volatile int button_a_flag; -volatile int button_b_flag; -volatile int button_d_flag; -volatile int button_c_flag; +int button_a_flag; +int button_b_flag; +int button_d_flag; +int button_c_flag; DigitalOut led1(LED1); void buttonA_isr(); @@ -48,14 +48,14 @@ if (button_c_flag) { button_c_flag = 0; led1 = !led1; - select11(button_a_flag,button_d_flag,button_b_flag); + select11(&button_a_flag,&button_d_flag,&button_b_flag); } } } -void buttonA_isr(*button_a_flag) +void buttonA_isr() { button_a_flag = 1; // set flag in ISR }