43 void setup()
override;
70 int8_t prev_bright_[28] = {0};
75 void setup()
override;
79 std::string dump_summary()
const override;
MAX6956GPIORange
Range for MAX6956 pins.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
max6956::MAX6956CURRENTMODE brightness_mode_
void pin_mode(uint8_t pin, gpio::Flags flags)
void dump_config() override
void set_inverted(bool inverted)
MAX6956GPIOMode
Modes for MAX6956 pins.
void set_brightness_mode(max6956::MAX6956CURRENTMODE brightness_mode)
bool digital_read(uint8_t pin)
void digital_write(uint8_t pin, bool value)
bool write_reg_(uint8_t reg, uint8_t value)
void set_flags(gpio::Flags flags)
void write_brightness_mode()
void write_brightness_global()
void set_brightness_global(uint8_t current)
void set_parent(MAX6956 *parent)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
bool read_reg_(uint8_t reg, uint8_t *value)
float get_setup_priority() const override
Implementation of SPI Controller mode.
uint8_t global_brightness_
void set_pin_brightness(uint8_t pin, float brightness)
This Class provides the methods to read/write bytes from/to an i2c device.
void set_pin(uint8_t pin)