Pull PollingComponent up from individual display drivers to Display. (#5444)

This commit is contained in:
Clyde Stubbs
2023-11-27 07:48:38 +11:00
committed by GitHub
parent ccd7f0661c
commit dbdcb39af9
39 changed files with 19 additions and 47 deletions
-1
View File
@@ -110,7 +110,6 @@ CONFIG_SCHEMA = cv.All(
async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)
await display.register_display(var, config)
await i2c.register_i2c_device(var, config)
+1 -1
View File
@@ -17,7 +17,7 @@ enum InkplateModel : uint8_t {
INKPLATE_6_V2 = 3,
};
class Inkplate6 : public PollingComponent, public display::DisplayBuffer, public i2c::I2CDevice {
class Inkplate6 : public display::DisplayBuffer, public i2c::I2CDevice {
public:
const uint8_t LUT2[16] = {0xAA, 0xA9, 0xA6, 0xA5, 0x9A, 0x99, 0x96, 0x95,
0x6A, 0x69, 0x66, 0x65, 0x5A, 0x59, 0x56, 0x55};