#pragma once // --------------------------------------------------------------------------- // Hardware pin assignments — update to match your wiring // --------------------------------------------------------------------------- // System select GPIO // HIGH = System A active // LOW = System B active #define PIN_SYS_SELECT 1 // TFT backlight (active high) #define PIN_TFT_BL 21 // --------------------------------------------------------------------------- // Display geometry // --------------------------------------------------------------------------- #define DISPLAY_W 240 #define DISPLAY_H 240 #define DISPLAY_CX 120 // centre x #define DISPLAY_CY 120 // centre y #define DISPLAY_RADIUS 115 // usable inner radius // --------------------------------------------------------------------------- // Timing // --------------------------------------------------------------------------- #define LOGO_FADE_STEPS 100 // animation steps per fade phase #define LOGO_FADE_STEP_MS 10 // ms per step (phase duration = 1 s each) #define LOGO_STATIC_MS 8000UL // ms logo holds after both fades complete #define POLL_INTERVAL_MS 50UL // --------------------------------------------------------------------------- // Colours (RGB565) // --------------------------------------------------------------------------- #define COL_BG_SYS_A 0x1600 // dark green #define COL_BG_SYS_B 0x0010 // dark navy #define COL_BG_LOGO TFT_BLACK #define COL_RING TFT_WHITE #define COL_LABEL TFT_WHITE #define COL_LETTER_A 0x07E0 // bright green #define COL_LETTER_B 0x5C1F // cornflower blue #define COL_LOGO_ACCENT 0xFEA0 // gold