15 void setup()
override;
53 std::string dump_summary()
const override;
float get_loop_priority() const override
void setup() override
Check i2c availability and setup masks.
void loop() override
Poll for input changes periodically.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
void digital_write(uint8_t pin, bool value)
Helper function to write the value of a pin.
uint16_t output_bits_
The mask to write as output state - 1 means HIGH, 0 means LOW.
bool write_reg_(uint8_t reg, uint8_t value)
uint8_t mode_value_
Copy of the mode value.
void set_parent(CH422GComponent *parent)
uint8_t pin_read_flags_
Flags to check if read previously during this loop.
BedjetMode mode
BedJet operating mode.
bool digital_read(uint8_t pin)
Helper function to read the value of a pin.
void dump_config() override
void pin_mode(uint8_t pin, gpio::Flags flags)
Helper function to set the pin mode of a pin.
float get_setup_priority() const override
void set_pin(uint8_t pin)
Implementation of SPI Controller mode.
void set_inverted(bool inverted)
uint8_t input_bits_
Copy of last read values.
CH422GComponent()=default
This Class provides the methods to read/write bytes from/to an i2c device.
uint8_t read_reg_(uint8_t reg)
Helper class to expose a CH422G pin as a GPIO pin.
bool set_mode_(uint8_t mode)