Rasp-Berlin
Posts: 5
Joined: Sat Oct 31, 2015 8:04 pm

PI-Display an python-games

Mon Nov 30, 2015 5:12 pm

I've tried several Webradio-Scrips using Python and the Touchscreen, but I don't get them running.

At last, I've tried the Script from Adafruit ( https://learn.adafruit.com/raspberry-pi ... ouchscreen )

I've changed the lines 214 from "320,240" to "800,480" (Screensize) and the line 7 from "/dev/fb1" to "/dev/fb0"

As result, I get the Message:

Code: Select all

root@raspberry:~# python /home/pi/radio/radioplayer.py
Traceback (most recent call last):
  File "/home/pi/radio/radioplayer.py", line 215, in <module>
    screen = pygame.display.set_mode(size)
pygame.error: Unable to open mouse
root@raspberry:~#
The lines 213 to 215 containing the following code:

Code: Select all

#set size of the screen
size = width, height = 800, 480
screen = pygame.display.set_mode(size)
Who do I get the touch-function of 'python-games' running with this Display?


Return to “Official Foundation Display”