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
+2 -1
View File
@@ -58,7 +58,7 @@ BASIC_DISPLAY_SCHEMA = cv.Schema(
{
cv.Optional(CONF_LAMBDA): cv.lambda_,
}
)
).extend(cv.polling_component_schema("1s"))
FULL_DISPLAY_SCHEMA = BASIC_DISPLAY_SCHEMA.extend(
{
@@ -116,6 +116,7 @@ async def setup_display_core_(var, config):
async def register_display(var, config):
await cg.register_component(var, config)
await setup_display_core_(var, config)
+1 -1
View File
@@ -163,7 +163,7 @@ class BaseFont {
virtual void measure(const char *str, int *width, int *x_offset, int *baseline, int *height) = 0;
};
class Display {
class Display : public PollingComponent {
public:
/// Fill the entire screen with the given color.
virtual void fill(Color color);