button.h source code
More...
#include <stdio.h>
#include "button.h"
#include "esp_idf_version.h"
button.h source code
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2022-08-09
- Copyright
- Copyright (c) 2021
◆ button_enable()
| void button_enable |
( |
button_t *const |
button | ) |
|
◆ button_enable_irq()
| void button_enable_irq |
( |
button_t *const |
button | ) |
|
buttonInitIRQ will intialize button for interrupt routine
- Parameters
-
- Returns
- None
◆ read_button()
| int read_button |
( |
button_t *const |
button | ) |
|
buttonRead will read the pin pin
buttonRead will read the gpio pin
- Parameters
-
- Returns
- int return either high or low || 0 or 1
◆ gpio_install_count
| int gpio_install_count = 0 |