Repository navigation
Add self contained basic test firmware - #343
Merged
Merged
Conversation
Turn test/ci_build into a no-wiring, no-extra-libs diagnostic firmware and publish flashable binaries so people can rule out local-toolchain differences without building anything (issue lemmingDev#342). - src/main.cpp: on connect, auto-press BUTTON_3..BUTTON_8 on a timer (BUTTON_1/2 = A/B accept/back on Android, deliberately skipped), walk the battery level and power state, expose NUS (greeting + periodic status + help/status commands), and fill every Device Information Service characteristic. Trim the HID descriptor (8 buttons, 1 unused hat, no axes) so Android parses button offsets correctly. - inject_version.py: set BLE_GAMEPAD_LIB_VERSION from library.properties + git sha, reported as the Software Revision characteristic. - merge_firmware.py: emit firmware-factory.bin, flashable at offset 0x0. - platformio.ini: shared [env] section; c6 still disabled. - platformio.yml: upload test-firmware-<board> artifacts, add a workflow_dispatch ref input for ad-hoc builds, write flashing steps to the run summary. - release.yml: attach the firmware binaries to GitHub releases. - test/ci_build/README.md: what it does and how to get/flash a binary. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tuning - inject_version.py: add BLE_GAMEPAD_BUILD_TIME (fresh UTC stamp every build, also forces main.cpp to recompile); boot line now prints build id + timestamp so you can confirm an upload actually landed. - NUS: track subscription state and only push the periodic status line when a client is subscribed (was logging "no peer connected - dropped"). - Diagnostics: 1 s heartbeat with the step-timer deltas, log each button press/release, hold buttons 350 ms (visible in a tester), run the first step of each activity immediately on connect. - Tuning for Android: button range and stick throw are now easy to adjust via the #defines; right-stick deflection kept under ~50% to avoid synthesised D-pad nav. platformio.ini defaults BLE_GAMEPAD_DEBUG=0. - README: "Watching the serial log" section - serialmonitor.org (Web Serial, Chromium-only like esptool-js), port names per OS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Header and the FIRST/LAST_TEST_BUTTON note described the old 24-button / BUTTON_25..32 / 250 ms setup; update them to match the code (BUTTON_COUNT, ~2.5 s interval, 350 ms hold, range as a #define) and add a line explaining the loop heartbeat. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Memory usage change @ 4410936
Click for full report table
Click for full report CSV |
Owner
|
lets merge |
LeeNX
marked this pull request as ready for review
September 6, 2026 11:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Looking to cover the needs for #342