Input function doen't work
Opened this issue · 0 comments
sudo apt-get install python3-setuptools
sudo apt-get install python3-dev
download https://pypi.python.org/pypi/RPIO
cd RPIO
sudo python3 setup.py install
Value = RPIO.input(Pin) is always the same value, with button up and down
and
rpio-curses return this error
Traceback (most recent call last):
File "/usr/local/bin/rpio-curses", line 4, in
import('pkg_resources').run_script('RPIO==2.0.0b1', 'rpio-curses')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1494, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 501, in
main()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 467, in main
d.start()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 423, in start
self.draw()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 182, in draw
screen.addstr(pos_y, POS_GPIOLIST_X+9, "%s " % (GPIO_FUNCTIONS[func]), curses.color_pair(3) if func == 4 else 0)
KeyError: 3
Thanks