mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
gpio
move configuring to separate function instead of in constructor
This commit is contained in:
@@ -50,8 +50,9 @@ class GPIO : public QObject
|
||||
Input,
|
||||
Output
|
||||
};
|
||||
explicit GPIO(Direction dir, uint8_t gpio, bool state = false, QObject *parent = nullptr);
|
||||
explicit GPIO(QObject *parent = nullptr);
|
||||
~GPIO();
|
||||
void configure_pin(Direction dir, uint8_t gpio, bool state = false);
|
||||
void set_value(bool val);
|
||||
bool value();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user