MCP230xx open drain interrupt pins (#1243)

This commit is contained in:
Keith Burzinski
2021-02-13 03:07:11 -06:00
committed by GitHub
parent 81b512a7b3
commit b52f7cfe86
8 changed files with 24 additions and 7 deletions
+3
View File
@@ -51,6 +51,8 @@ class MCP23017 : public Component, public i2c::I2CDevice {
void digital_write(uint8_t pin, bool value);
void pin_mode(uint8_t pin, uint8_t mode);
void set_open_drain_ints(const bool value) { open_drain_ints_ = value; }
float get_setup_priority() const override;
protected:
@@ -63,6 +65,7 @@ class MCP23017 : public Component, public i2c::I2CDevice {
uint8_t olat_a_{0x00};
uint8_t olat_b_{0x00};
bool open_drain_ints_;
};
class MCP23017GPIOPin : public GPIOPin {