Quote:
Originally Posted by geekmaster
The easiest is to ASSUME that the kindle has 300 byte-wide pixels per line, with values "dd if=$DZ of=$DF ..." or "echo -e '\xff'|dd of=$DF ...".
|
Something like this:
Quote:
Originally Posted by geekmaster
Another option I thought of was to use a 600-byte wide /tmp/buffer (to hold a scan line for both touch/k4 8-bit pixels or the k3/dx 4-bit pixels) and then for the k3/dx draw 4 different pixel pair bytes to the framebuffer based on the values (\x00 \xf0 \x0f \xff).
|
Any hints on how to condense the line? I tried some things with awk but had problems with \x00 in the input. (Never used awk before so this could be entirely my fault.)