We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm having a problem reading the state on PA19, as it is setting itself to HIGH in INPUT mode?
I have an LED connected between PA19 (via 1k resistor) and GND, then I run the simple script below.
Expected result:
LED remains turned off and "0" is printed
Actual result:
LED turns on and "1" is printed
What am i doing wrong?
#!/usr/local/bin/python from pyA20.gpio import gpio from pyA20.gpio import port pin_to_circuit = port.PA19 gpio.init() gpio.setcfg(pin_to_circuit, gpio.OUTPUT) gpio.output(pin_to_circuit, 0) gpio.setcfg(pin_to_circuit, gpio.INPUT) print(gpio.input(pin_to_circuit))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm having a problem reading the state on PA19, as it is setting itself to HIGH in INPUT mode?
I have an LED connected between PA19 (via 1k resistor) and GND, then I run the simple script below.
Expected result:
LED remains turned off and "0" is printed
Actual result:
LED turns on and "1" is printed
What am i doing wrong?
The text was updated successfully, but these errors were encountered: