Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: unable to locate SenseHAT joystick device #98

Open
BlinkOnceTwice opened this issue Jul 25, 2019 · 0 comments
Open

RuntimeError: unable to locate SenseHAT joystick device #98

BlinkOnceTwice opened this issue Jul 25, 2019 · 0 comments

Comments

@BlinkOnceTwice
Copy link

BlinkOnceTwice commented Jul 25, 2019

Hello.
I was working with Raspberry pi 3 b+ with Raspbian Stretch and kernel 4.14.114 and my sense hat.
I was just testing the Sense Hat board i ran this code
from sense_hat import SenseHat

sense = SenseHat()
sense.show_message("Hello world")
Basic Hello world code.

But i got this error:

Traceback (most recent call last):
  File "sense.py", line 2, in <module>
    sense = SenseHat()
  File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 92, in __init__
    self._stick = SenseStick()
  File "/usr/lib/python2.7/dist-packages/sense_hat/stick.py", line 57, in __init__
    self._stick_file = io.open(self._stick_device(), 'rb', buffering=0)
  File "/usr/lib/python2.7/dist-packages/sense_hat/stick.py", line 88, in _stick_device
    raise RuntimeError('unable to locate SenseHAT joystick device')
RuntimeError: unable to locate SenseHAT joystick device

I don't know why it's unable to locate Joystick. The hat is connected to Pi properly with standoffs in place.

This is the dmesg log for sense hat


[    8.022385] rpi-sense 1-0046: Raspberry Pi Sense HAT firmware version 0
[    8.022428] rpi-sense 1-0046: Failed to get keys-int descriptor.
[    8.073464] input: Raspberry Pi Sense HAT Joystick as /devices/virtual/input/input4
[    8.078865] genirq: Flags mismatch irq 170. 00000001 (keys) vs. 00002001 (IAxxx-event-irq)
[    8.078887] rpi-sense-js rpi-sense-js: IRQ request failed.
[    8.187819] rpi-sense-js: probe of rpi-sense-js failed with error -16

Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant