Components
Components: DisplayObject and Children
TL;DR
Device Integration
void drawControls() override {
// Top bumpers - positioned with margin to prevent border cutoff
draw<TextButton>("<-", pins::BTN_L_SHOULDER, 5, 0);
draw<TextButton>("->", pins::BTN_R_SHOULDER, DISPLAY_WIDTH - 75, 0);
}for (auto &displayObject : device->displayObjects) {
displayObject->tick();
vTaskDelay(1 / portTICK_PERIOD_MS);
}DisplayObject Lifecycle
Rendering Rules (Direct to TFT)
Creating a New Component
Template: MyDisplayObject
Example: DynamicText
Best Practices
Last updated