Skip to content

Conversation

@tyeth
Copy link
Member

@tyeth tyeth commented Nov 20, 2025

…xpanderPins constructor)

As the https://github.com/espressif/arduino-esp32/blob/c0395df7e038fe02186543c32eb6de3d12987636/variants/arduino_nesso_n1/pins_arduino.h#L47C3-L47C88 uses this:
``
we can & 0x200 for the expander on 0x43 to pass the false check of &0x100 (for the expander on 0x44).
That way I can define the pins at +256/+512 versions of the output number and then use for normal digitalWrite calls, via a brief translation call.
@tyeth tyeth requested a review from brentru December 4, 2025 19:04
@tyeth
Copy link
Member Author

tyeth commented Dec 4, 2025

I'm sure you'll want me to drop the expander pins stuff, but thought I'd at least show you the thinking/component pin numbering for the buttons via expander pins (and it works - only tested buttons for now).
Explanation is in this protobuf issue: adafruit/Wippersnapper_Protobuf#156 (comment)

@tyeth tyeth marked this pull request as ready for review December 4, 2025 19:06
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.

2 participants