walter_1
Posts: 5
Joined: Thu Jul 25, 2013 12:26 pm
Location: Germany

Pi Display and pygame

Sat Feb 27, 2016 3:56 pm

Hello,
I have the official Pi-display and try to use it with python and pygame as I am more familiar with pygane than kivy.
I have some program snippets which worked fine with an faytech 7" display. (I should mention that I don't want a X-environment). These snippets don't work in my actual configuration using the "kivypie" distribution.
whne I start my program I get the following error

Code: Select all

screen = pygame.display.set_mode((800 , 480))
pygame.error: Unable to open a console terminal
After some investigation on the net I found that there is no approbiate "driver" for pygame to talk with. After some more reading I found myself helpless with things like kernel, firmware and so on.

Is someone out there who got pygame work with Raspberry Pi 2B and the official display or knows a "simple solution"?
BTW The kivy demo works fine. But I would like to use pygame, not learning a new programming technique.
Thanks in advance

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Pi Display and pygame

Tue Mar 01, 2016 1:20 pm

Hi,
I have taken the plunge with kivy, however I am sure I got pygame to work with it previously.
Can you post all of your program up until that screen line - I am sure there are some environmental settings that need to be applied.
I will compare and respond later when I am at home.

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “Official Foundation Display”