Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2012, 02:21 PM   #1
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
[Solved] Any way to display custom graphics on the Kobo Wifi?

I've been trying lately to display custom images on my Kobo Wifi. I've had no luck
finding any documentation for the Wifi's imx357 and e-ink on freescale's website,
and pygame fails to recognize the framebuffer. So I tried converting an image to the
rgb565 format with ffmpeg:
Code:
ffmpeg -vcodec png -i image.png -vcodec rawvideo -f rawvideo -pix_fmt rgb565 image.raw
and displaying it with the program "pickel" found on the Wifi, but the image it displays
is distorted, as seen here (original image is shown in top-left corner):


Anyone have any suggestions? I can't stand having my Wifi hacked and yet not being
able to draw to the screen! Plus I need something to do until I can get my hands on a
Glo or a Paperwhite.
Attached Thumbnails
Click image for larger version

Name:	Wifi.png
Views:	844
Size:	601.9 KB
ID:	93392  

Last edited by KevinShort; 10-19-2012 at 02:08 PM.
KevinShort is offline   Reply With Quote
Old 10-13-2012, 04:57 PM   #2
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
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:	743
Size:	383.9 KB
ID:	94069  
KevinShort is offline   Reply With Quote
 
Advertisement
Reply

Tags
hacking, kobo wifi, pickel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make sure graphics display correctly? (optimal size) Bobosmite Sigil 4 08-31-2012 04:25 AM
Walking Dead graphics novels come to Kobo (and are non-agency!) scrapking Kobo Tablets 9 03-29-2012 07:50 AM
Nook for PC doesn't display graphics ButterflyBill ePub 8 09-28-2011 05:53 PM
Kobo & inline graphics Slope Kobo Reader 7 02-21-2011 01:25 PM
Newbie Question : Draw Graphics on Hanlin v3 Display biodiesel HanLin eBook 6 01-06-2010 01:17 AM


All times are GMT -4. The time now is 02:54 AM.


MobileRead.com is a privately owned, operated and funded community.