mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Pull PollingComponent up from individual display drivers to Display. (#5444)
This commit is contained in:
@@ -39,7 +39,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 spi.register_spi_device(var, config)
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
namespace esphome {
|
||||
namespace pcd8544 {
|
||||
|
||||
class PCD8544 : public PollingComponent,
|
||||
public display::DisplayBuffer,
|
||||
class PCD8544 : public display::DisplayBuffer,
|
||||
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
|
||||
spi::DATA_RATE_8MHZ> {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user