View Single Post
Old 05-13-2016, 10:35 PM   #189
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Woohoo! The demo.c included with the tcc kindle package WORKS (after changing "/dev/fb0" to "/dev/fb/0" on one line)! Awesome! It is doing (relatively) fast eink animation on my K1, as I type this message. Because that code (my first C eink animation) made the assumption that each byte was just a fat pixel (and a skinny pixel on a K4 and newer), it "just works" even on the 2-bit K1 framebuffer.

Apparently, ignoring error codes when opening framebuffers (as I do in my demos to simplify the code) leads to segfaults when you write to a bad file descriptor, eh?

The animation is running faster than on a DXG, so perhaps my video player might work okay on the K1 too. I will know soon.

EDIT: I used to launch my eink demos from an SSH terminal, so I could ctrl-C them when I viewed enough. Launched from an install script (or KUAL) takes to long for a quick test (or preview). I suppose I should change my launcher script to launch it in the background, wait for a keypress (or screen touch), then do a killall on the launched script. Makes more sense after waiting too long too many times... ...and I am STILL waiting for "demo" to complete. How long does it run?

Last edited by geekmaster; 05-13-2016 at 10:46 PM.
geekmaster is offline   Reply With Quote