You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#! /usr/bin/env python3
import time
import Adafruit_BBIO.GPIO as GPIO
import Adafruit_BBIO.PWM as PWM
import Adafruit_BBIO.ADC as ADC
from Adafruit_I2C import Adafruit_I2C
def test_GPIO_output():
channel = "P8_10"
GPIO.setup(channel, GPIO.IN)
GPIO.cleanup()
if __name__ == '__main__':
test_GPIO_output()
When I run the script above I get the following error which looks similar to these issues in the past, although they seem to have a different configuration so I wasn't sure how to proceed. #165 and #248
Traceback (most recent call last):
File "test.py", line 15, in <module>
test_GPIO_output()
File "test.py", line 11, in test_GPIO_output
GPIO.setup(channel, GPIO.IN)
ValueError: Set gpio mode failed, missing file or invalid permissions.
Here is the output of my system to sudo /opt/scripts/tools/version.sh
I'm running into issues when initializing a GPIO pin as input on a BeagleBone Black running Ubuntu 20.04 (https://forum.digikey.com/t/ubuntu-server-20-04/6649/25). Here is the python3 code
When I run the script above I get the following error which looks similar to these issues in the past, although they seem to have a different configuration so I wasn't sure how to proceed. #165 and #248
Here is the output of my system to
sudo /opt/scripts/tools/version.sh
The text was updated successfully, but these errors were encountered: