Hardware Application Layer for Buttons.
More...
#include "driver/gpio.h"
Go to the source code of this file.
Hardware Application Layer for Buttons.
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2022-08-09
- Copyright
- Copyright (c) 2021
◆ ESP_INTR_FLAG_DEFAULT
| #define ESP_INTR_FLAG_DEFAULT 0 |
◆ button_t
◆ button_enable()
| void button_enable |
( |
button_t *const |
button | ) |
|
button_t Initialization for buttons
- Parameters
-
- Returns
- None
- Note
- buttonInit() is use when the button or input will be read as high or low level for interrupt intitialization
- See also
- buttonInitIRQ()
- Parameters
-
- Returns
- None
- Note
- button_enable() is use when the button or input will be read as high or low level for interrupt intitialization
- See also
- button_enable_irq()
◆ button_enable_irq()
| void button_enable_irq |
( |
button_t *const |
button | ) |
|
buttonInitIRQ will intialize button for interrupt routine
- Parameters
-
- Returns
- None
- Parameters
-
- Returns
- None
◆ button_interrupt()
| void button_interrupt |
( |
void * |
arg | ) |
|
buttonInterrupt will be an general routine for buttons interrupts.
- Parameters
-
◆ read_button()
| int read_button |
( |
button_t *const |
button | ) |
|
buttonRead will read the gpio pin
- Parameters
-
- Returns
- int return either high or low || 0 or 1
buttonRead will read the gpio pin
- Parameters
-
- Returns
- int return either high or low || 0 or 1