Joystick problems
Posted: Tue Jun 26, 2018 9:51 pm
Hi there!
I recently purchased the sense hat with the intent to play around with it a little bit, but I am having trouble with the joystick.
I have a raspberry pi 3 B running osmc v2018.06-1 and I also installed python-sense-hat. The problem is, that I can not, with any joystick program, get the joystick to work.
There is however a "Raspberry Pi Sense HAT Joystick" in /sys/class/input/ which I suppose means that the joystick is indeed being recognized.
One of the programs for example is this one:
But it does not work.
I'm kinda stuck and don't know what to search for anymore, since no one seems to have this problem.
If anyone could help me out I'd really appreciate it!
Thanks
I recently purchased the sense hat with the intent to play around with it a little bit, but I am having trouble with the joystick.
I have a raspberry pi 3 B running osmc v2018.06-1 and I also installed python-sense-hat. The problem is, that I can not, with any joystick program, get the joystick to work.
There is however a "Raspberry Pi Sense HAT Joystick" in /sys/class/input/ which I suppose means that the joystick is indeed being recognized.
One of the programs for example is this one:
Code: Select all
from sense_hat import SenseHat
sense = SenseHat()
while True:
for event in sense.stick.get_events():
print("The joystick was {} {}".format(event.action, event.direction))
I'm kinda stuck and don't know what to search for anymore, since no one seems to have this problem.
If anyone could help me out I'd really appreciate it!
Thanks