config.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. // ---------------------------------------------------------------------------
  3. // Hardware pin assignments — update to match your wiring
  4. // ---------------------------------------------------------------------------
  5. // System select GPIO
  6. // HIGH = System A active
  7. // LOW = System B active
  8. #define PIN_SYS_SELECT 32
  9. // ---------------------------------------------------------------------------
  10. // Display geometry
  11. // ---------------------------------------------------------------------------
  12. #define DISPLAY_W 240
  13. #define DISPLAY_H 240
  14. #define DISPLAY_CX 120 // centre x
  15. #define DISPLAY_CY 120 // centre y
  16. #define DISPLAY_RADIUS 115 // usable inner radius
  17. // ---------------------------------------------------------------------------
  18. // Timing
  19. // ---------------------------------------------------------------------------
  20. #define LOGO_FADE_STEPS 100 // animation steps per fade phase
  21. #define LOGO_FADE_STEP_MS 10 // ms per step (phase duration = 1 s each)
  22. #define LOGO_STATIC_MS 8000UL // ms logo holds after both fades complete
  23. #define SPLASH_MS 3000UL // ms splash screen holds before system screen
  24. #define BLANK_TIMEOUT_MS 300000UL // ms on System A before screen blanks (5 min)
  25. #define POLL_INTERVAL_MS 50UL
  26. // ---------------------------------------------------------------------------
  27. // Colours (RGB565)
  28. // ---------------------------------------------------------------------------
  29. #define COL_BG_SYS_A 0x1600 // dark green
  30. #define COL_BG_SYS_B 0xe861 // dark red
  31. #define COL_BG_LOGO TFT_BLACK
  32. #define COL_RING TFT_WHITE
  33. #define COL_LABEL TFT_WHITE
  34. #define COL_LETTER_A TFT_WHITE
  35. #define COL_LETTER_B TFT_WHITE
  36. #define COL_LOGO_ACCENT 0xFEA0 // gold