nanomesher / Nanomesher_NanoSound

Source code for NanoSound products
Apache License 2.0
21 stars 19 forks source link

on OLED-only system on PiZero Volumio, PIN 16 gives "Failed to add edge detection" #10

Open michaelpeeters opened 4 years ago

michaelpeeters commented 4 years ago

When running this the NanoSound plugin on a raspberry pi zerow gives an error on pin 16

This is the core issue:

volumio@volumio-pizero:~/nanosound_oled$ sudo python ./nanodac_oled.py 
Traceback (most recent call last):
  File "./nanodac_oled.py", line 534, in <module>
    GPIO.add_event_detect(GPIOButtonNo, GPIO.BOTH, callback=optionButPress, bouncetime=30)
RuntimeError: Failed to add edge detection

Although this is not a core "NanoSound" issue, it might cause issues for volumio-projects using https://nanomesher.com/store/i2c-OLED-1-3-Display-for-NanoSound-DAC-DAC-2-Pi-Arduino-White-p91380573.

Sample-project: https://www.hackster.io/thisoldgeek/volumio-mini-music-player-7e4ed7