Skip to content

Conversation

@MarkAYoder
Copy link
Contributor

Now the battery level and WIFI LEDs can be blinked. Added blinkLEDs.py to blink all the built in LEDs.

I increased the sleep between exporting a pin and setting the direction to 200ms since 100ms sometimes failed. It's still a hack, but it works.

--Mark

@RobertCNelson
Copy link
Contributor

RobertCNelson commented Sep 13, 2017

@MarkAYoder

bat100 should be '26'...

GPIO0_26_T11

Regards,

@pdp7
Copy link
Collaborator

pdp7 commented Sep 18, 2017

@MarkAYoder a BeagleBone Black regression in release 1.0.5 was discovered with how we are integrating Blue support. The details are here: https://forums.adafruit.com/viewtopic.php?f=49&t=123435

I've been traveling for the last week and will be home on Wednesday. Hopefully, I'll have sometime to investigate how we can have the BeagleBone (White/Black/Green) co-exist with the BeagleBone Blue. I'll be leaving on Thursday for Maker Faire New York so I might not actually be able to sort this out until after I get back home on Sept 25th.

For now, BB White/Black/Green users will need to use release 1.0.4. I hope to ultimately have this resolved in a forthcoming 1.0.6 release.

@RobertCNelson
Copy link
Contributor

@pdp7

sudo: /opt/scripts/tools/version.sh: command not found

They are running an old image, so they are missing:

udev permissions on bootup (thus they need to be root)
config-pin: an old version, that doesn't recognize the blue, and it'll "want" to load something...

(it'll probally work if they run as root)

Regards,

@pdp7
Copy link
Collaborator

pdp7 commented Sep 20, 2017

@RobertCNelson Yeah, that user is out of date but I also tried this on current image. The regression is due to this commit by @MarkAYoder 35718a9

It causes all BeagleBones to attempt to use the LED class (for example /sys/class/leds/red/brightness) for GPIO pins (like gpio66) that are connected to LEDs on the Blue. This results in error on White/Black/Green when trying to use one of those GPIO pins (like P8_7) as the LED path will not exist.

For example, regression when trying to use P8_7 on BeagleBone Black:

import Adafruit_BBIO.GPIO as GPIO
GPIO.setup("P8_7", GPIO.OUT)

Results in:

$ sudo python /home/debian/test-gpio.py
Traceback (most recent call last):
  File "/home/debian/test-gpio.py", line 2, in <module>
    GPIO.setup("P8_7", GPIO.OUT)
ValueError: Set gpio value failed, missing file or invalid permissions.

strace reveals:

access("/sys/class/gpio/gpio66", R_OK|W_OK|X_OK) = 0
nanosleep({0, 100000000}, NULL)         = 0
open("/sys/class/leds/red/brightness", O_WRONLY) = -1 ENOENT (No such file or directory)

@pdp7 pdp7 merged commit 2cb8376 into adafruit:master Oct 17, 2017
@pdp7
Copy link
Collaborator

pdp7 commented Oct 17, 2017

thanks @MarkAYoder

@zserg8
Copy link

zserg8 commented Oct 26, 2017

I can confirm that it is broken for BB Black. The pins affected are P8_07, P8_08, P8_17, P8_26 and P8_32.
As a temporary workaround one may change constants in event_gpio.h, lines 51-55:

#define USR_LED_RED 1001 //66 P8_07 - broken for BB black
#define USR_LED_GREEN 1002 //67 P8_08- broken for BB black
#define BAT25 1003 //27 P8_17- broken for BB black
#define BAT50 1004 //11 P8_32 broken for BB black
#define BAT75 1005 //61 P8_26 broken for BB black

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants