Hi

So I am trying to get my pHAT BEAT working with SqueezeButtonPi. I can
get the buttons working by using the script here,
https://forums.slimdevices.com/showthread.php?107001-ANNOUNCE-SqueezeButtonPi-Tool-to-use-buttons-and-rotary-encoders-on-a-RPi&p=1004820&viewfull=1#post1004820.

However my problem is trying to use the onboard LEDs at the same time.

I am using this code:

import phatbeat

phatbeat.set_clear_on_exit(False)

for channel in (0,1):
phatbeat.set_pixel(0, 255, 0, 0, 0.1, channel=channel)

phatbeat.show()

After running it the buttons seem to no longer working. Re-running the
sbpd script (i.e. calling pigpid and then sbpd and assigning functions
to gpios) fixes the problem.

Is the issue that phatbeat.py has the line Import Rpi.GPIO as GPIO?

Thanks in advance.


------------------------------------------------------------------------
bobcoupee's Profile: http://forums.slimdevices.com/member.php?userid=70646
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to