astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
505 stars 253 forks source link

Joystick examples fail to work in headless and non headless mode on RP0W #95

Closed maxkunes closed 5 years ago

maxkunes commented 5 years ago

I am using the evdev_joystick.py example from this repository on a raspberry pi zero w running 'Linux raspberrypi 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l'.

All libraries have been installed and I am using python3.5. I am able to run any other example perfectly that doesn't use the joystick.

Running the script results in one message 'Press Ctrl-C to quit' in my ssh terminal. Clearly, the joystick device is being found or it would error out as per the source code.

An important note as well is that the joystick fails to work even when not in headless mode, however, in that mode I am able to use a keyboard attached to the pi to control. (in the pygame_joystick.py example this time)

This seems like either lack of support for the rp0 or a hardware problem with my hat.

maxkunes commented 5 years ago

Update: I have confirmed this was a faulty sense hat.