Skip to content

pinDir REG_DIR_A #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
totalretribution opened this issue Feb 27, 2024 · 1 comment
Open

pinDir REG_DIR_A #28

totalretribution opened this issue Feb 27, 2024 · 1 comment

Comments

@totalretribution
Copy link

Im having an issue enabling input_pullup on IO7-0 and I might be misunderstanding the datasheet for SX1509 however looking at the code for pinDir it only seems to handle REG_DIR_B which is IO15-8.

It also looks like readPin and writePin only ever write to B registers.

@Bad-Assumptions
Copy link

Bad-Assumptions commented Nov 5, 2024

We just had the same concern, but the functions read or write 16 bits starting at REG_DIR_B. Since the A registers always follow the B registers, they read and write all 16 pins at once.

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

No branches or pull requests

2 participants