David12412412

Validating
  • Content Count

    5
  • Joined

  • Last visited

  1. I'm still not really understanding how I go about using PA19 as a normal GPIO input port, so that I can check if an input has been received (such as from a push button). Shorting PA19 to GND just means the voltage goes straight to GND and doesn't get detected as an INPUT. I'm not sure if I'm asking my question in the wrong way? For example if I have a push button from 3.3V to PA19 how can I detect a push on the button? Circuit like this: 3.3V --------> Push Button ------->1k Resistor ------> PA19 Currently I cannot detect a push on this circuit because PA19 just shows "1" all the time for the input.
  2. Is there any way to disable TWI1-SDA, so that PA19 just acts as a normal GPIO pin? (so that I can read inputs normally as i would on another GPIO pin)
  3. If i short PA19 to GND how will I detect any input on PA19 as it will always just show "0"?
  4. When I try to read the input on PA19 immediately goes to "1" even though there is no voltage being sent to the pin. Example: #!/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)) I don't understand why this would put "1" with nothing even connected to the PA19 pin? Are there some settings I need to change to get PA19 working as a normal GPIO pin?
  5. I'm having this issue too, is there any fix for latest Armbian? My Armbian version: BOARD=orangepizero BOARD_NAME="Orange Pi Zero" BOARDFAMILY=sun8i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=869a89d6-dirty DISTRIBUTION_CODENAME=focal DISTRIBUTION_STATUS=supported VERSION=20.05.4 LINUXFAMILY=sunxi BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image