Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: GPIO buttons on moOde 9.1.4
#4
Code:
pi@MoOde:~ $ sudo /var/www/daemon/gpio_buttons.py
bounce=150ms
btn1, enabled n, gpio 02, pull-up, cmd=sudo,poweroff
btn2, enabled n, gpio 03, pull-up, cmd=mpc,next
btn3, enabled n, gpio 04, pull-up, cmd=mpc,prev
btn4, enabled n, gpio 05, pull-up, cmd=mpc,toggle
btn5, enabled y, gpio 06, pull-up, cmd=mpc,stop
Traceback (most recent call last):
 File "/var/www/daemon/gpio_buttons.py", line 90, in <module>
   GPIO.setup(int(row['pin']), GPIO.IN, pull_up_down=int(row['pull']))
 File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 696, in setup
   _check(lgpio.gpio_claim_input(_chip, gpio, {
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3/dist-packages/lgpio.py", line 755, in gpio_claim_input
   return _u2i(_lgpio._gpio_claim_input(handle&0xffff, lFlags, gpio))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i
   raise error(error_text(v))
lgpio.error: 'GPIO busy'
Reply


Messages In This Thread
GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-09-2024, 01:11 PM
RE: GPIO buttons on moOde 9.1.4 - by Tim Curtis - 11-09-2024, 03:22 PM
RE: GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-09-2024, 03:40 PM
RE: GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-09-2024, 04:28 PM
RE: GPIO buttons on moOde 9.1.4 - by Tim Curtis - 11-09-2024, 05:00 PM
RE: GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-10-2024, 05:25 AM
RE: GPIO buttons on moOde 9.1.4 - by Tim Curtis - 11-10-2024, 12:34 PM
RE: GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-10-2024, 12:56 PM
RE: GPIO buttons on moOde 9.1.4 - by Egor-Gl - 11-14-2024, 02:39 PM
RE: GPIO buttons on moOde 9.1.4 - by Tim Curtis - 11-14-2024, 04:03 PM

Forum Jump: