Commit Graph
26 Commits
Author SHA1 Message Date
Antti Pohjola 9cf52a0665 bugfix: Pico W build. 2026-05-13 14:04:56 +03:00
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 3a31bd75af refactor: add SetStateData and audio send priority 2026-05-13 16:19:08 +08:00
awalol 43776c068d fix: SetStateData update 2026-05-09 21:16:24 +08:00
awalol ec2b1dbc12 clarify SetStateData func 2026-05-09 14:29:35 +08:00
awalol c45ceea535 optimize high frequency 0x02 SetStateData 2026-05-09 14:21:21 +08:00
awalol f8f86a29ef fix: ENABLE_SERIAL conditional compilation 2026-05-08 17:37:53 +08:00
awalol ef0a261654 disable watchdog in debug firmware 2026-05-08 14:10:52 +08:00
awalol be01dc439e add usb serial for debug firmware
Code by gpt5.5-xhigh
2026-05-08 13:54:07 +08:00
awalol 7358a81d11 fix: DSE Profile Save. Thanks @fuhuasxflwb 2026-05-05 21:14:29 +08:00
awalol 0d32db4d9f cmd: poll rate switch 2026-05-05 13:00:28 +08:00
awalol fb8624b61b feat: config manager 2026-05-05 01:17:15 +08:00
awalolandGitHub a390eddcba Merge branch 'master' into fix-polling-rate 2026-04-30 14:56:15 +08:00
awalol d1d54eaa41 add watchdog 2026-04-30 14:25:31 +08:00
Felix 7414b303a0 refactor: optimize USB polling rate and fix report race condition
- Increased HID polling rate from 250Hz (4ms) to 1000Hz (1ms) in
  the configuration descriptor to match wired DualSense performance.
- Fixed a potential race condition between Bluetooth data callbacks
  and the USB task using pico/critical_section.
- Implemented a 'dirty flag' mechanism to prevent sending redundant
  duplicate reports, ensuring the dongle only transmits to the host
  when fresh Bluetooth data is received.
- Added a fallback retry logic in interrupt_loop to ensure data
  integrity if a USB report fails to queue.
2026-04-29 20:48:49 +02:00
awalol 6c992af459 feat: support test command 2026-04-28 13:15:20 +08:00
awalol 372e44a85d optimize overclocking. Thanks JunHoo(@1220951120) 2026-04-27 17:41:53 +08:00
awalol f497472127 increase the voltage 2026-04-26 23:06:43 +08:00
awalol c5805dcc8c feat: headset auto switch 2026-04-26 15:14:26 +08:00
awalol 17627eebe4 feat: usb device auto disconnect 2026-04-26 14:33:06 +08:00
awalol 2fb3c2f90b speaker work 2026-04-26 11:34:34 +08:00
awalol 845656aedd feat:adjust gain in speaker volume. add led and auto-disconnect toggle in mute. 2026-03-22 00:33:30 +08:00
awalol 8c8af7b97c set buffer length 2026-03-21 11:01:52 +08:00
awalol 5251ae1f5b fix gyro 2026-03-15 13:35:45 +08:00
awalol 0fd9c2bdd3 fix reconnect 2026-03-10 16:14:05 +08:00
awalol 9a929530d9 First Commit 2026-03-05 16:21:25 +08:00