Missing support for USR% leds on BBB
See original GitHub issueHi, I’m testing Blinka on a BBB, and I have this problem when trying to use User Leds
debian@beaglebone:/var/lib/cloud9/python$ sudo python3 blinka_blink.py
hello blinky!
Traceback (most recent call last):
File "blinka_blink.py", line 9, in <module>
led = digitalio.DigitalInOut(board.LED_USR1)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_Blinka-1.2.7.dev3+g5d33134-py3.5.egg/digitalio.py", line 67, in __init__
self.direction = Direction.INPUT
File "/usr/local/lib/python3.5/dist-packages/Adafruit_Blinka-1.2.7.dev3+g5d33134-py3.5.egg/digitalio.py", line 93, in direction
self._pin.init(mode=Pin.IN)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_Blinka-1.2.7.dev3+g5d33134-py3.5.egg/adafruit_blinka/microcontroller/am335x/pin.py", line 30, in init
GPIO.setup(self.id, GPIO.IN)
ValueError: Set gpio mode failed, missing file or invalid permissions.
Thank you for your attention
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
No user activity LEDS after upgrade - BeagleBoard.org
After reboot the 4 user leds turn off permanently early in the boot process. I looked some based on what I found online...
Read more >Can't control LEDs on BBB from terminal - Google Groups
As I recall, you can't use I/O redirection with sudo. The "> brightness" accesses the file using your regular user account. What group...
Read more >User LEDs on the BeagleBone Black Rev. C - DigiKey Forum
I was wondering if it was possible to mimic the user LED's on the BBB ... i would like to do. any help...
Read more >Beaglebone: Controlling the on-board LEDs using C++
In this short post I am going to look at how you can change the behaviour of the Beaglebone on-board LEDs – the...
Read more >Brightology | Reviews | Better Business Bureau® Profile
I bought 24 lights all exposed to full bright sun of Miami. They work for 1 hour and die I left 5 messages...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can reproduce the behavior directly in Adafruit_BBIO by calling
GPIO.setup("USR1", GPIO.IN)
instead ofGPIO.setup("USR1", GPIO.OUT)
results in error:
and strace shows the bad path:
I believe this behavior is due to a bug in Adafruit_BBIO where USRn LED is setup initially in INPUT mode instead of OUTPUT mode.
I hard coded the pin to be an output to test:
This now works:
strace shows that the correct path is being used:
I’ll investigate further the root cause in Adafruit_BBIO