View Single Post
Old 10-13-2012, 03:57 PM   #2
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209865
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Solved!

I was wandering through the the files on my Wifi when I, on chance,
found the file "/sys/class/graphics/fb0/rotate". I saw that I contained
a single "0", so I tried
Code:
echo 1 > /sys/class/graphics/fb0/rotate
to see if anything happened. Nothing did. But, for some reason,
pygame could suddenly see and draw to the framebuffer!

I still have to rely on 'pickel' to update the screen:
Code:
dd if=/dev/fb0 of=screen && cat screen | /usr/local/Kobo/pickel showpic
Pygame on my Wifi doesn't support png alpha, but colorkey alpha works.
Text rendering works as well, but both the text color and text background
color must be specified, otherwise it will come out as a solid rectangle.


Pygame on my Wifi with image and text:
Attached Thumbnails
Click image for larger version

Name:	KoboPygame.png
Views:	786
Size:	383.9 KB
ID:	94069  
KevinShort is offline   Reply With Quote