Commit Graph
13 Commits
Author SHA1 Message Date
Thierry Perrautandawalol 63c62081eb feat: low-battery LED indicator (ENABLE_BATT_LED, default ON)
Blink the Pico onboard LED at 1 Hz when the connected DualSense
reports PowerPercent <= 1 (i.e. <= 10%) and PowerState == Discharging.
Source data is byte 52 of the BT 0x31 input report, already copied
into interrupt_in_data; no new BT parsing required.

The new module owns the LED only while it is actively blinking; it
detects controller disconnection via stale-report timeout and steps
out, so bt.cpp's existing connect/disconnect LED handling stays in
charge in all other states. Honors disable_pico_led.

Gated by -DENABLE_BATT_LED=ON (default). With the option off, the
source file is not compiled and behavior is identical to upstream.
CI gains a compile-only check for the OFF flavor.

(cherry picked from commit 2f8ea73c9fb695e24e7cc3329db7cb925e82e1c9)
2026-05-13 18:09:31 +08:00
awalol 036a4a442b fix: ci build 2026-05-09 21:19:58 +08:00
awalol 8f78259fa0 update ci enable log verbose 2026-05-09 14:32:40 +08:00
awalol 2a6e0d0fd5 fix: ci build 2026-05-08 14:02:00 +08:00
awalol bc18d31613 fix: ci build 2026-05-08 13:57:39 +08:00
awalol b2b92959ca add cache for ci 2026-05-08 13:50:47 +08:00
awalolandGitHub 7064afac7f Update funding source from Ko-fi to Patreon 2026-05-01 12:13:58 +08:00
awalol b8beee0fcd update release.yml 2026-04-29 20:05:41 +08:00
awalol a68cf93751 update build.yml 2026-04-29 19:51:58 +08:00
awalol 65055836fd update ci 2026-04-29 19:35:11 +08:00
awalol e4a28b4e39 update build.yml 2026-04-29 19:30:41 +08:00
awalol 733dad3fae add github ci 2026-04-29 19:17:17 +08:00
awalolandGitHub 98e6dedaa8 add FUNDING.yml 2026-04-28 15:23:39 +08:00