From 9fd5fae12b402b3026468a37de024cf589101ccb Mon Sep 17 00:00:00 2001 From: jessikitty Date: Wed, 1 Jul 2026 19:53:47 +1000 Subject: [PATCH] Add config file --- controller/config.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 controller/config.py diff --git a/controller/config.py b/controller/config.py new file mode 100644 index 0000000..cd648a9 --- /dev/null +++ b/controller/config.py @@ -0,0 +1,41 @@ +""" +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), +}