Files
hh-bt-controller/controller/config.py
T
2026-07-01 19:53:47 +10:00

42 lines
2.0 KiB
Python

"""
config.py - Device configuration for the KAIYU BLE LED controller.
Fill in DEVICE_ADDRESS after running scanner/ble_scanner.py
"""
# ── Device ────────────────────────────────────────────────────────────────────
# Set this to your controller's Bluetooth MAC address (Windows/Linux)
# or UUID (macOS). Found via scanner/ble_scanner.py
DEVICE_ADDRESS = "AA:BB:CC:DD:EE:FF" # <-- REPLACE THIS
# ── BLE Characteristics ───────────────────────────────────────────────────────
# These will be confirmed by ble_scanner.py --connect
# Common options (try in order if unsure):
WRITE_CHARACTERISTIC = "0000ffe1-0000-1000-8000-00805f9b34fb" # LEDBLE family
# WRITE_CHARACTERISTIC = "0000fff3-0000-1000-8000-00805f9b34fb" # ELK-BLEDOM family
# Set to True to use write-with-response (slower but more reliable)
WRITE_WITH_RESPONSE = False
# ── Hazbin Hotel Display Zones ────────────────────────────────────────────────
# If you have multiple LED channels / controllers, define zones here.
# (Single controller for now — expand later)
ZONES = {
"main": DEVICE_ADDRESS,
# "halo": "AA:BB:CC:DD:EE:01",
# "hellfire": "AA:BB:CC:DD:EE:02",
}
# ── Colours (R, G, B) ─────────────────────────────────────────────────────────
COLORS = {
"warm_white": (255, 220, 160),
"cold_white": (255, 255, 255),
"hellfire_red": (255, 30, 0),
"angel_gold": (255, 200, 50),
"heaven_blue": (100, 160, 255),
"hope_pink": (255, 100, 180),
"charlie_red": (200, 20, 20),
"vaggie_grey": (120, 120, 200),
"off": (0, 0, 0),
}