Save and restore GPIO pin configuration.
More...
#include <pin.hpp>
|
|
| pin_backup_t (int pin_num=1) |
| | Constructor.
|
| |
|
void | setPin (int pin_num) |
| | Set the target pin number.
|
| |
|
int8_t | getPin (void) const |
| | Get the target pin number.
|
| |
|
void | backup (void) |
| | Save current pin configuration.
|
| |
|
void | restore (void) |
| | Restore saved pin configuration.
|
| |
Save and restore GPIO pin configuration.
- Note
- Ported from M5GFX