| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #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 32
- // ---------------------------------------------------------------------------
- // 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 SPLASH_MS 3000UL // ms splash screen holds before system screen
- #define BLANK_TIMEOUT_MS 300000UL // ms on System A before screen blanks (5 min)
- #define POLL_INTERVAL_MS 50UL
- // ---------------------------------------------------------------------------
- // Colours (RGB565)
- // ---------------------------------------------------------------------------
- #define COL_BG_SYS_A 0x1600 // dark green
- #define COL_BG_SYS_B 0xe861 // dark red
- #define COL_BG_LOGO TFT_BLACK
- #define COL_RING TFT_WHITE
- #define COL_LABEL TFT_WHITE
- #define COL_LETTER_A TFT_WHITE
- #define COL_LETTER_B TFT_WHITE
- #define COL_LOGO_ACCENT 0xFEA0 // gold
|