Skip to content

Read the space state switch from IO25 - #4

Merged
NinjaLikesCheez merged 1 commit into
mainfrom
fix/switch-pin-io25
Nov 13, 2026
Merged

NinjaLikesCheez merged 1 commit into
mainfrom
fix/switch-pin-io25

Conversation

@NinjaLikesCheez

@NinjaLikesCheez NinjaLikesCheez commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The physical space state switch is wired to the IO25 pad. The firmware read IO26/D0, so flipping the switch did nothing.

This changes config::kSwitchPin from 26 to 25. GPIO25 has an internal pull-up, so INPUT_PULLUP and the active-low read (LOW = open) still work without other changes.

Testing

  • Flash the board, open the serial monitor (115200), flip the switch and check that the state changes are logged and published

🤖 Generated with Claude Code

The switch is wired to the IO25 pad, but the firmware was reading
IO26/D0, so flipping the switch had no effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NinjaLikesCheez

Copy link
Copy Markdown
Contributor Author

The reason for this change is that a physical connector was made to attach the ESP to the switch which had the pins next to each other whereas 26 was on the other side of the board.

@NinjaLikesCheez
NinjaLikesCheez merged commit af01af3 into main Nov 13, 2026
1 check passed
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