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

Pin assignments? #3

Open
tonton81 opened this issue Jan 26, 2016 · 5 comments
Open

Pin assignments? #3

tonton81 opened this issue Jan 26, 2016 · 5 comments

Comments

@tonton81
Copy link

Good evening sumotoy, I'm testing the gpioDigitalRead on the MCP23S17 and getting the pins (not in order) and number squared..
pinconfig

i cant seem to figure it out, and im actually worried if i should attempt the digitalwrite commands hehe
thanks
tony

@tonton81
Copy link
Author

it doesnt go from 0 to 15 when i digital read, it's more like this when reading:
digitalread pin 0 reads pin 8
digitalread pin 1 reads pin 9
digitalread pin 2 reads pin 10
digitalread pin 3 reads pin 11
digitalread pin 4 reads pin 12
digitalread pin 5 reads pin 13
digitalread pin 6 reads pin 14
digitalread pin 7 reads pin 15
digitalread pin 8 reads pin 0
digitalread pin 9 reads pin 1
digitalread pin 10 reads pin 2
digitalread pin 11 reads pin 3
digitalread pin 12 reads pin 4
digitalread pin 13 reads pin 5
digitalread pin 14 reads pin 6
digitalread pin 15 reads pin 7

and of course, the variable it reads.
does this have something mixed in the library with MSB/LSB?
Thanks
Tony

@tonton81
Copy link
Author

oh possibly i have found the key, however i am still novice at remedying it, but the mcp23s* libraries seem to be using BYTE as it doesnt exist on the current IDE's :(, could this be the issue>?
thanks

@sumotoy
Copy link
Owner

sumotoy commented Jan 30, 2016

Seems a stupid error in MSB/LSB conversion, I will check monday.

@plantlover
Copy link

I'm experiencing the same with the PCA9555-based Funduino I2C to GPIO module.

@kyranf
Copy link

kyranf commented Nov 8, 2021

Was this ever fixed for the PCA9655? I have some issues which could be similar to this.

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

4 participants