![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pachas
Dependencies: mbed QEI FastPWM
Diff: buttons.cpp
- Revision:
- 6:d38287621cca
- Parent:
- 3:45299e7882b9
- Child:
- 11:5cb7ae8bd831
diff -r bd5fc0510e7b -r d38287621cca buttons.cpp --- a/buttons.cpp Sun Apr 19 05:38:41 2020 +0000 +++ b/buttons.cpp Mon Apr 20 11:39:30 2020 +0000 @@ -5,7 +5,6 @@ /* Object definition */ BusIn buttons (ENTER_SW_PIN, LIMIT_SW_01_PIN, GAS_INPUT_SW_PIN); -DigitalIn push_button(ENTER_SW_PIN); /* Global variable definition */ volatile uint8_t button_state = 0; // debounced button state (bit == 1: button pressed) @@ -15,7 +14,6 @@ void Buttons_Initialize(void){ // Enable the pull-up resistors for the buttons and the switch - push_button.mode(PullUp); }