29 lines
1.9 KiB
C
29 lines
1.9 KiB
C
#pragma once
|
||
|
||
// ── WiFi ──────────────────────────────────────────────────────────────────────
|
||
#define WIFI_SSID "YourSSID"
|
||
#define WIFI_PASSWORD "YourPassword"
|
||
|
||
// ── Server ────────────────────────────────────────────────────────────────────
|
||
// IP or hostname of your VFX Review server — no trailing slash
|
||
#define SERVER_HOST "192.168.1.100"
|
||
#define SERVER_PORT 3000
|
||
#define DISPLAY_API_KEY "your-api-secret-key-here" // value of API_SECRET_KEY in .env
|
||
|
||
// ── MAX7219 hardware (hardware SPI) ──────────────────────────────────────────
|
||
// Module: 4 × 8×8 MAX7219 daisy-chained = 8×32 display
|
||
// DIN → GPIO 23 (MOSI)
|
||
// CLK → GPIO 18 (SCK)
|
||
// CS → GPIO 5 (SS)
|
||
#define CS_PIN 5
|
||
#define NUM_DEVICES 4 // number of 8×8 modules chained
|
||
|
||
// ── Display tuning ────────────────────────────────────────────────────────────
|
||
#define BRIGHTNESS 4 // 0–15
|
||
#define SCROLL_SPEED 35 // ms per pixel shift (lower = faster)
|
||
#define NOTIFY_HOLD_MS 8000 // how long a notification stays before returning to stats
|
||
|
||
// ── Poll intervals ────────────────────────────────────────────────────────────
|
||
#define STATS_INTERVAL_MS 30000 // fetch stats every 30 s
|
||
#define EVENTS_INTERVAL_MS 5000 // check for new events every 5 s
|