Hey there,
I recently purchased a pibrella board (Pibrella Rev 3) for use with my raspberry pi. I've attached the pibrella board to my pi. However, when I press the red button on my pibrella, the pi reboots. I've tried overwriting the button's functions, using both the documentation on github for the api and using the examples here: http://www.tecoed.co.uk/uploads/1/4/2/4/14249012/pibrella_commands.pdf. The result remains the same.
Any tips or pointers for this? I can't seem to find anything similar on google either.
update [thur 5 pm] not sure if this is helpful, but when I run the following code snippet I get an error:
code snippet
def test_button(pin):
... pibrella.light.green.on()
pibrella.button.pressed(test_button)
error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pibrella.py", line 276, in on_high
self._setup_callback(bouncetime)
File "/usr/local/lib/python2.7/dist-packages/pibrella.py", line 290, in _setup_callback
GPIO.add_event_detect (self.pin, GPIO.BOTH, callback=handle_callback, bouncetime=bouncetime)
RuntimeError: Failed to add edge detection.
I thought it was a pin issue, and tried different pins, but that didn't work either - plugging the board on the remaining pins resulted in the pi not starting up at all.
Everything else (e.g. lights, buzzer) works fine!
Thanks!