mirror of
https://github.com/sascha-hemi/esphome-ikea-led-matrix.git
synced 2026-03-21 00:04:09 +01:00
DisplayBuffer now automatically inherits from PollingComponent
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/display/display_buffer.h"
|
||||
#include "esphome/core/version.h"
|
||||
|
||||
|
||||
#include "frekvens-driver.h"
|
||||
|
||||
@@ -9,8 +11,13 @@
|
||||
namespace esphome {
|
||||
namespace frekvenspanel {
|
||||
|
||||
#if ESPHOME_VERSION_CODE >= VERSION_CODE(2023, 12, 0)
|
||||
class Panel : public display::DisplayBuffer {
|
||||
#else
|
||||
|
||||
class Panel : public PollingComponent,
|
||||
public display::DisplayBuffer {
|
||||
#endif
|
||||
public:
|
||||
int p_latch;
|
||||
int p_clock;
|
||||
|
||||
Reference in New Issue
Block a user