Move all communication from USB to BLE. The device now advertises as "Claude Controller" and acts as both a BLE HID keyboard (for touch gestures) and a GATT data server (for usage updates from the daemon). - Add NimBLE-Arduino BLE module with custom GATT service + HID keyboard - Add third screen (Bluetooth) with connection status, MAC, reset button - Rewrite daemon in bash using bluetoothctl/busctl for BLE GATT writes - Add screenshot capture via LVGL snapshot over serial - Remove TinyUSB mode — normal pio upload works again - Update README with BLE architecture, screenshots, gesture docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
328 B
Bash
Executable File
17 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
# Build and flash firmware to the SC01 Plus.
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PORT="${1:-/dev/ttyACM0}"
|
|
|
|
echo "=== Flashing Claude Usage Tracker ==="
|
|
echo "Port: $PORT"
|
|
echo ""
|
|
|
|
cd "$SCRIPT_DIR/firmware"
|
|
~/.platformio/penv/bin/pio run -t upload --upload-port "$PORT"
|
|
|
|
echo ""
|
|
echo "=== Done! ==="
|