Skip to content

Update expander.js 0x06 should be 0x0C for pullups - #1689

Closed
Templarian wants to merge 1 commit into
Moddable-OpenSource:publicfrom
Templarian:patch-2
Closed

Update expander.js 0x06 should be 0x0C for pullups#1689
Templarian wants to merge 1 commit into
Moddable-OpenSource:publicfrom
Templarian:patch-2

Conversation

@Templarian

Copy link
Copy Markdown
Contributor

I believe in both places it should be 0x0C (as 0x06 is DEFVAL).

It works either way with my mcp23017 for interrupts on buttons. Might be why it wasn't noticed.

Still new to this chip so could be reading the library wrong.

@phoddie

phoddie commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

It took me a few minutes to remember how this works. ;)

It looks like you are correct. I think what happened is that it used the Bank = 1 mode register for GPPUA (0x06) but since the expander runs in Bank = 0 mode, GPPUA is different (0x0C).

Thank you! We'll get this merged for the September release.

@mkellner

Copy link
Copy Markdown
Collaborator

This has been merged and will be available in the next release.

@mkellner mkellner closed this Aug 26, 2026
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.

3 participants