1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 12:22:20 +01:00

add-mcp23008-support

This commit is contained in:
Tom Fahey
2019-06-19 16:49:51 +01:00
parent 108209c31d
commit b4bc7785b1
122 changed files with 245 additions and 346 deletions

View File

@@ -28,7 +28,7 @@ class GPIOSwitch : public switch_::Switch, public Component {
void set_interlock(const std::vector<Switch *> &interlock);
protected:
void write_state(bool state) override;
void write_state_(bool state) override;
GPIOPin *pin_;
GPIOSwitchRestoreMode restore_mode_{GPIO_SWITCH_RESTORE_DEFAULT_OFF};