No fielded Vesper Standard unit has an RF receiver, but vesper-std.hpp set HAS_RF 1, so every build ran the RF task on GPIO 22 and exposed rf.* commands that could never do anything. Set HAS_RF 0 (RF_RX_PIN kept for a future RF revision). rf.* now return "Unknown command" on this build; agnus keeps RF. Docs updated to say rf.* is agnus-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
3.6 KiB
C++
42 lines
3.6 KiB
C++
// ═══════════════════════════════════════════════════════════════════════════════
|
|
// variants/vesper.hpp — Hardware capability definitions for Vesper v1
|
|
// ═══════════════════════════════════════════════════════════════════════════════
|
|
//
|
|
// This file is auto-included for all [env:vesper-*] builds via platformio.ini:
|
|
// build_flags = -include variants/vesper.hpp
|
|
//
|
|
// DO NOT include this file manually. It is injected at the compiler level so
|
|
// every translation unit sees the same definitions without explicit includes.
|
|
//
|
|
// Hardware: Kincony KC868-A6 — ESP32-D0WD-V3, 4MB flash
|
|
// ═══════════════════════════════════════════════════════════════════════════════
|
|
|
|
#pragma once
|
|
|
|
// ── Identity ─────────────────────────────────────────────────────────────────
|
|
// HW_FAMILY matches the value stored in NVS key "hw_family" by the backend.
|
|
// It is used in OTA URL building and telemetry.
|
|
// The specific slug (e.g. "vesper-standard" vs "vesper-plus") is set in NVS
|
|
// at provisioning time — HW_FAMILY here is the family prefix for this build.
|
|
#define HW_FAMILY "vesper" // Hardware family prefix (NVS hw_family will be e.g. "vesper-standard")
|
|
|
|
// ── Storage ──────────────────────────────────────────────────────────────────
|
|
#define HAS_SD_CARD 1 // SD card present — configs stored on SD
|
|
#define HAS_SPIFFS 0 // SPIFFS not used (min_spiffs partition is tiny)
|
|
|
|
// ── Connectivity ─────────────────────────────────────────────────────────────
|
|
#define HAS_ETHERNET 0 // Ethernet removed in fw v138
|
|
#define HAS_RF 0 // No RF receiver on any fielded Vesper Standard unit
|
|
#define RF_RX_PIN 22 // Unused while HAS_RF=0 — pin the receiver would use if one is ever fitted
|
|
#define HAS_LCD 0 // No onboard LCD
|
|
|
|
// ── Output hardware ──────────────────────────────────────────────────────────
|
|
#define HAS_PCF8574 1 // PCF8574 I2C GPIO expanders for relay control
|
|
#define OUTPUT_COUNT_MAX 16 // Maximum physical outputs on this board
|
|
|
|
// ── UART command transport ────────────────────────────────────────────────────
|
|
#define HAS_UART 1 // UARTDriver on Serial2 (GPIO12 TX, GPIO13 RX)
|
|
|
|
// ── RTC ──────────────────────────────────────────────────────────────────────
|
|
#define HAS_RTC 1 // DS3231 RTC present
|