Skip to content
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

how to set pin mode #10

Closed
djsg opened this issue Aug 12, 2022 · 1 comment
Closed

how to set pin mode #10

djsg opened this issue Aug 12, 2022 · 1 comment

Comments

@djsg
Copy link

djsg commented Aug 12, 2022

Hi,

From datasheet, I only figured out if I want to set a pin (e.g P17) to output LOW, I can use I2C to write 3 bytes as the following:
0100 A2A1A00
0xxx xxxx
xxxx xxxx

Is it correct? But I cannot figure out how to set P17 to output mode.

@xreef
Copy link
Owner

xreef commented Sep 20, 2022

Sorry If I lost this message... I add a workaround to this problem with this define to get the original pins, not the sequential ones.
Bye Renzo

@xreef xreef closed this as completed Sep 20, 2022
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