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
digitalRead returns wrong values ? #12
Comments
I have reported this issue before. |
|
@francescocolavra, Ok than could show use how we can display in a terminal or a LCD when the pin is HIGH? |
Like that: |
Dera Francesco, thank for your reply |
I have just started using tis library, and it is great so far writing to the chip, BUT I want to be able to read its content as well, but the following code returns
1111010
1001
uint8_t input = 0; setStartupFrogs(); Serial.println("Startup setting setup"); delay(3000); //Serial.println(expander.digitalRead(3) ? "HIGH" : "LOW"); // Print button pin state input = Serial.println(expander.read(), BIN); // Read the whole pins input register Serial.println(input, BIN);
setStrartupFrogs() actually sets pins 0, 2,and 7, so I am expecting to see
10000101
assuming it maintains MSB or LSB forread and write, but these values are not correct either way around ?
Is this a known issue ?
The text was updated successfully, but these errors were encountered: