Diddyborg and ps3 controller issue

Hi
I am trying to get diddy to work with a ps3 controller, but have had no luck, the controller is paired via bluetooth, and i have tried running both ps3DiddyJoy and runDiddyJoy neither work.

ps3DiddyJoy gives me a sixad error, i followed instructions in another thread that said to use runDiddyJoy instead, but that gave me a pyjama error. I have removed the # as suggested in the thread but now get

Traceback (most recent call last):
File "/home/pi/diddyborg/diddyJoy.py", line 67, in
pygame.display.set_mode((1,1))
pygame.error: Unable to open a console terminal

Any ideas how to fix this

cheers

piborg's picture

If you put the # symbol back in at the front of the set_mode line what error do you get?

I get
Traceback (most recent call last):
File "/home/pi/diddyborg/diddyJoy.py", line 109, in
events = pygame.event.get()
pygame.error: video system not initialised

so i put it back and ran the file as sudo and it worked

piborg's picture

I am glad to hear you got it working :)

I will make a note that the pygame.error: Unable to open a console terminal error can be solved by running the script with sudo in case anyone else has the same issue.

Subscribe to Comments for "Diddyborg and ps3 controller issue"