Files
vfxreview/esp32/firmware/config.h
T
twotalesanimation b27aa1788f
Deploy / deploy (push) Successful in 2m37s
API Updates
2026-07-08 16:28:18 +02:00

29 lines
1.9 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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 // 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