Skip to content

feat(mic): add runtime-configurable microphone pins to brucePins.conf#2319

Draft
pfefferle wants to merge 1 commit intoBruceDevices:devfrom
pfefferle:feat/configurable-mic-pins
Draft

feat(mic): add runtime-configurable microphone pins to brucePins.conf#2319
pfefferle wants to merge 1 commit intoBruceDevices:devfrom
pfefferle:feat/configurable-mic-pins

Conversation

@pfefferle
Copy link
Copy Markdown

Summary

  • Add micClk and micData fields to BruceConfigPins, defaulting to the board's compile-time PIN_CLK/PIN_DATA values
  • Serialize/deserialize mic pins in /brucePins.conf JSON
  • Add "Mic Pins" menu entry in Dev Mode (Config > Dev Mode > Mic Pins)
  • Update mic.cpp to read pins from bruceConfigPins at runtime instead of compile-time macros

Closes #2281

Test plan

  • Verify default mic pins match board defaults (no behavior change without user action)
  • Verify Mic Pins menu shows CLK/DATA values and allows changing them
  • Verify changed pins persist across reboot via brucePins.conf
  • Test mic recording works with custom pin assignment on Cardputer ADV expansion port

Closes BruceDevices#2281

- Add micClk and micData fields to BruceConfigPins with defaults
  from the board's compile-time PIN_CLK/PIN_DATA values
- Serialize/deserialize mic pins in brucePins.conf JSON
- Add setMicClkPin/setMicDataPin setter methods
- Add "Mic Pins" menu entry in Dev Mode for CLK and DATA pin selection
- Update mic.cpp to read pins from bruceConfigPins at runtime
  instead of using compile-time macros directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant