Page 1 of 1

PI-Display an python-games

Posted: Mon Nov 30, 2015 5:12 pm
by Rasp-Berlin
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 ( ... 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/
Traceback (most recent call last):
  File "/home/pi/radio/", line 215, in <module>
    screen = pygame.display.set_mode(size)
pygame.error: Unable to open mouse
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?

Re: PI-Display an python-games

Posted: Tue Dec 01, 2015 4:28 pm
by gadgetoid