Closed k1ngf15h3r closed 6 years ago
I found the issue in the init.py from the RPi_emu
I changed following line https://github.com/blbltheworm/yarpie/blob/e8fae740581525a43be6d132dbbc4d3c323ab407/python2.x/RPi_emu/GPIO/__init__.py#L97
from
_output(channel[i], state[i])
to
_output(channel[i], state)
Hi, first of all I will thank you for this great emulator, which helps me to develop a RPi game without having the RPi connected all the time.
Now my problem is, that I need to switch on multiple LEDs at the same time when a button is pressed. I defined:
When I press button on GPIO 22 I get
TypeError: 'int' object is not subscribtable
which refernces to_output(channel[i], state[i])
Any idea what the error is in my code or is it something in the emu?