API Updates
Deploy / deploy (push) Successful in 3m3s

This commit is contained in:
twotalesanimation
2026-07-08 14:38:56 +02:00
parent d40ca8eb55
commit afcef02409
9 changed files with 399 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
#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-display-api-key-here" // must match .env DISPLAY_API_KEY
// ── 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 // 015
#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