allow input preload and state toggling

This commit is contained in:
Siwat Sirichai 2024-06-21 21:34:51 +07:00
parent b778fb6a02
commit 4ea2122f6e
5 changed files with 26 additions and 1 deletions

View file

@ -58,6 +58,8 @@ public:
void setValue(uint8_t pin, uint16_t value);
// Get the state of the specified pin
bool getState(uint8_t pin);
// Toggle the state of the specified pin
void toggleState(uint8_t pin);
// Get the pwm value of the specified pin
uint16_t getValue(uint8_t pin);
// Register a callback function that will be called when the state of a pin changes