adafruit / FreqShow

Raspberry Pi & PiTFT-based RTL-SDR frequency scanning and display tool.
MIT License
141 stars 67 forks source link

freqshow.py error with ads7846 touchscreen #9

Closed shall698 closed 9 years ago

shall698 commented 9 years ago

Hello all from a total pi newbie.

I recently purchased an ads7846 touchscreen and after a little while got the display working. Now running well. I tried to expand into freqshow and having trouble when running freqshow.py

I now get error message saying:

File "freqshow.py", line 77, in     pygame.display.init() pygame.error: Unable to open mouse

Grateful for any advice on this one.

Shane

tdicola commented 9 years ago

Hrm I'm not familiar with that display, but the code as-is makes some assumptions about running on a PiTFT touchscreen. Here's where freqshow.py configures itself to use the PiTFT mouse (exposed on the /dev/input/touchscreen path): https://github.com/adafruit/FreqShow/blob/master/freqshow.py#L75-L76 If you can find where the touchscreen you're using exposes its mouse then try changing that path to point at it. Good luck!