-
Notifications
You must be signed in to change notification settings - Fork 218
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
Invalid path for USR LED when setup as input #310
Comments
For reference, the Linux kernel has a LED subsystem which is different than the GPIO subsystem. Therefore, the built-in LED devices show up under This requires a special case in Adafruit_BBIO to handle the built-in LEDs:
|
This fix resolves Adafruit_BBIO issue #310 and adafruit/Adafruit_Blinka#96 which was preventing the USR LEDs from being used by the CircuitPython Blinka library
The above commit fixes adafruit/Adafruit_Blinka#96 This Blinka example now runs OK:
|
This error occurs for built-in LEDs like USR1. It currently preventing the built-in LEDs from being used in the CircuitPython Blinka library: adafruit/Adafruit_Blinka#96
The error is can be triggered by calling
GPIO.setup("USR1", GPIO.IN)
instead ofGPIO.setup("USR1", GPIO.OUT)
:results in error:
and strace shows the bad path:
While it is the case that INPUT is not valid state for built-in LEDs, this error is caused by accessing the incorrect path for the LED.
The correct path is:
The text was updated successfully, but these errors were encountered: