Es un backup para las pruebas de firmware y hardware de un ventilador
Dependencies: mbed QEI FastPWM
Diff: buttons.cpp
- Revision:
- 11:5cb7ae8bd831
- Parent:
- 6:d38287621cca
- Child:
- 12:3bc2465b034a
diff -r b2d87404309a -r 5cb7ae8bd831 buttons.cpp --- a/buttons.cpp Mon Apr 27 19:52:02 2020 +0000 +++ b/buttons.cpp Thu May 07 03:52:31 2020 +0000 @@ -1,10 +1,10 @@ - +/* File inclusion */ #include "mbed.h" #include "buttons.h" /* Object definition */ -BusIn buttons (ENTER_SW_PIN, LIMIT_SW_01_PIN, GAS_INPUT_SW_PIN); +BusIn buttons (ENTER_SW_PIN, LIMIT_SW_01_PIN); /* Global variable definition */ volatile uint8_t button_state = 0; // debounced button state (bit == 1: button pressed)