config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 1
  9. // TFT backlight (active high)
  10. #define PIN_TFT_BL 21
  11. // ---------------------------------------------------------------------------
  12. // Display geometry
  13. // ---------------------------------------------------------------------------
  14. #define DISPLAY_W 240
  15. #define DISPLAY_H 240
  16. #define DISPLAY_CX 120 // centre x
  17. #define DISPLAY_CY 120 // centre y
  18. #define DISPLAY_RADIUS 115 // usable inner radius
  19. // ---------------------------------------------------------------------------
  20. // Timing
  21. // ---------------------------------------------------------------------------
  22. #define LOGO_FADE_STEPS 100 // animation steps per fade phase
  23. #define LOGO_FADE_STEP_MS 10 // ms per step (phase duration = 1 s each)
  24. #define LOGO_STATIC_MS 8000UL // ms logo holds after both fades complete
  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 0x0010 // dark navy
  31. #define COL_BG_LOGO TFT_BLACK
  32. #define COL_RING TFT_WHITE
  33. #define COL_LABEL TFT_WHITE
  34. #define COL_LETTER_A 0x07E0 // bright green
  35. #define COL_LETTER_B 0x5C1F // cornflower blue
  36. #define COL_LOGO_ACCENT 0xFEA0 // gold