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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2018, 10:30 PM   #1
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Post FBInk: Another small tool to print crap on your screen!

So, err, I may have reimplemented eips from scratch. Oops?!

Long story short, not having eips on Kobo had been bugging me for a while, so I finally caved and did it myself.

And then I kind of went a wee bit overboard with it... .

So, yeaaaah, here it is, tailored for Kindles...

NOTE: It's also bundled with USBNet, provided you use a current snapshot, which you should .

NOTE: It's actually also usable as a C library (in which case, you can also strip down extra fonts, image & OpenType support to to shave it down to ~55KB). The binaries attached here are basically a commandline utility statically linked to said library. Some flags & options may look familiar .

NOTE: Bindings available in Go, LuaJIT & Python (with the Python bindings being shipped as part of my Python package).
Attached Files
File Type: gz FBInk-v1.10.3-kindle.tar.gz (1.59 MB, 13 views)

Last edited by NiLuJe; 02-11-2019 at 02:30 PM. Reason: Bumped to 1.10.3
NiLuJe is offline   Reply With Quote
Old 06-19-2018, 08:12 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v0.9.10 .

This one *may* actually properly handle the KOA2. Or not. .
NiLuJe is offline   Reply With Quote
Advert
Old 06-24-2018, 02:52 PM   #3
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Click image for larger version

Name:	fbink -c ''$(cat PoP.txt)''.png
Views:	437
Size:	5.0 KB
ID:	164637

From the usbnet bundle:
Spoiler:

Code:
[root@kindle us]# fbink -c -p -m -y 10 -S 6 "Thanks for fbink NiLuJe" 
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2
[FBInk] Fontsize set to 48x48.
[FBInk] Line length: 30 cols, Page size: 22 rows.
[FBInk] Fixed fb info: smem_len 6782976, line_length 1472
[FBInk] Kernel's HZ value appears to be 100
Printing string 'Thanks for fbink NiLuJe' @ column 0, row 10 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: true, font scaling: x6)
[root@kindle us]# fbink -m -y 18 "$(cat PoP.txt)"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2
[FBInk] Fontsize set to 32x32.
[FBInk] Line length: 45 cols, Page size: 33 rows.
[FBInk] Fixed fb info: smem_len 6782976, line_length 1472
[FBInk] Kernel's HZ value appears to be 100            
Printing string ' ____          ____    
/\  _`\       /\  _`\  
\ \ \L\ \ ___ \ \ \L\ \
 \ \ ,__// __`\\ \ ,__/
  \ \ \//\ \L\ \\ \ \/ 
   \ \_\\ \____/ \ \_\ 
    \/_/ \/___/   \/_/ 
      ' @ column 0, row 18 (inverted: false, flashing: false, centered: true, left padded: false, clear screen: false, font scaling: x0)
[root@kindle us]# screenshot
PoP is offline   Reply With Quote
Old 06-24-2018, 05:26 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@PoP: \o/

And just to assuage my inner OCD: that was a BOM at the beginning of PoP.txt, right?
NiLuJe is offline   Reply With Quote
Old 06-24-2018, 09:07 PM   #5
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Exactly. And I shamelessly stripped the fbink warning that said it would ignore it!
PoP is offline   Reply With Quote
Advert
Old 06-30-2018, 06:13 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v0.9.12 .

This one mainly has new centering code, so that stuff is even more in the middle than before! Yay.

(Also, stuff may be even more broken than before, because basic geometry & arithmetics and me don't mix).

This should also feature a slightly more correct KOA2 handling .
NiLuJe is offline   Reply With Quote
Old 07-01-2018, 08:02 AM   #7
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Still working

Click image for larger version

Name:	fbink BOM now handled.png
Views:	380
Size:	4.9 KB
ID:	164771

Spoiler:
Code:
[root@kindle us]# ./fbink -c -p -m -y 9 -S 6 -F fantasy "BOM"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2
[FBInk] Fontsize set to 48x48.
[FBInk] Line length: 30 cols, Page size: 22 rows.
[FBInk] Fixed fb info: smem_len 6782976, line_length 1472
[FBInk] Kernel's HZ value appears to be 100
Printing string 'BOM' @ column 0, row 9 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: true, font scaling: x6)
[root@kindle us]# ./fbink -p -m -y 10 -S 6 "Now handled?"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2
[FBInk] Fontsize set to 48x48.
[FBInk] Line length: 30 cols, Page size: 22 rows.
[FBInk] Fixed fb info: smem_len 6782976, line_length 1472
[FBInk] Kernel's HZ value appears to be 100
Printing string 'Now handled?' @ column 0, row 10 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: false, font scaling: x6)
[root@kindle us]# ./fbink -p -m -y 18 "$(cat PoP.txt)"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2
[FBInk] Fontsize set to 32x32.
[FBInk] Line length: 45 cols, Page size: 33 rows.
[FBInk] Fixed fb info: smem_len 6782976, line_length 1472
[FBInk] Kernel's HZ value appears to be 100
Printing string '____          ____
/\  _`\       /\  _`\
\ \ \L\ \ ___ \ \ \L\ \
 \ \ ,__// __`\\ \ ,__/
  \ \ \//\ \L\ \\ \ \/
   \ \_\\ \____/ \ \_\
    \/_/ \/___/   \/_/
      ' @ column 0, row 18 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: false, font scaling: x0)
[FBInk] Codepoint U+FEFF is not covered by this font!
[root@kindle us]# screenshot
[root@kindle us]#
PoP is offline   Reply With Quote
Old 07-06-2018, 03:22 PM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v0.9.14 (after a 0.9.13) .

It's mostly Kobo fixes, but hopefully, I didn't break anything else on the way .
NiLuJe is offline   Reply With Quote
Old 07-13-2018, 01:44 PM   #9
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
And v1.0.0 is finally out the door .

Again, mainly Kobo & API tweaks. And the KV should now default to a slightly smaller font size.
NiLuJe is offline   Reply With Quote
Old 07-19-2018, 08:01 PM   #10
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v1.2.0 .

With one major feature, bringing us to (useful) feature parity with eips: image support! Yay!
Most common image formats are supported, although you really should be using properly dithered PNGs .

JPEG (at least for my test images) appears to be slightly broken on really legacy devices (i.e., armv6), but the rest looks okay there .

Last edited by NiLuJe; 07-19-2018 at 08:17 PM.
NiLuJe is offline   Reply With Quote
Old 07-20-2018, 08:36 AM   #11
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Now with graphics support...


Click image for larger version

Name:	screenshot_2018_07_20T07_23_39-0400.png
Views:	364
Size:	21.7 KB
ID:	165110


Spoiler:
Code:
[root@kindle us]# fbink -c -p -m -y 9 -S 6 -F fantasy "T H A N K S !"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2 (Upside Down, 180°)
[FBInk] Fontsize set to 48x48.
[FBInk] Line length: 30 cols, Page size: 22 rows.
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 1472 bytes
[FBInk] Kernel's HZ value appears to be 100
Printing string 'T H A N K S !' @ column 0, row 9 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: true, font scaling: x6)
[root@kindle us]# fbink -g file=NiLuJe.png -x 26   -y 10
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2 (Upside Down, 180°)
[FBInk] Fontsize set to 24x24.
[FBInk] Line length: 60 cols, Page size: 44 rows.
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 1472 bytes
[FBInk] Kernel's HZ value appears to be 100
Displaying image 'NiLuJe.png' @ (0, 0)
[root@kindle us]# fbink -p -m -y 22 "$(cat PoP.txt)"
[FBInk] Variable fb info: 1448x1072, 8bpp @ rotation: 2 (Upside Down, 180°)
[FBInk] Fontsize set to 24x24.
[FBInk] Line length: 60 cols, Page size: 44 rows.
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 1472 bytes
[FBInk] Kernel's HZ value appears to be 100
Printing string ' ____          ____
/\  _`\       /\  _`\
\ \ \L\ \ ___ \ \ \L\ \
 \ \ ,__// __`\\ \ ,__/
  \ \ \//\ \L\ \\ \ \/
   \ \_\\ \____/ \ \_\
    \/_/ \/___/   \/_/
      ' @ column 0, row 22 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: false, font scaling: x0)
[root@kindle us]# screenshot
PoP is offline   Reply With Quote
Old 07-21-2018, 11:59 AM   #12
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Simulating GIF animations

After the book, the native version!

Click image for larger version

Name:	moving worms screenshot_2018_07_21T10_38_28-0400.png
Views:	389
Size:	68.1 KB
ID:	165133

Spoiler:
Code:
#!/bin/sh
#
#moving worms
#end with CTRL-C
cd /mnt/us
fbink -c -x 15 -y 18 "Moving Worms"
while :;do fbink -g file=0.png -x 12  -y 20;usleep 200000;fbink -g file=1.png -x 12  -y 20;usleep 200000;fbink -g file=2.png -x 12  -y 20;usleep 200000;fbink -g file=3.png -x 12  -y 20;usleep 200000;fbink -g file=4.png -x 12  -y 20;usleep 200000;fbink -g file=5.png -x 12  -y 20;usleep 200000;fbink -g file=6.png -x 12  -y 20;usleep 200000;fbink -g file=7.png -x 12  -y 20;usleep 200000;fbink -g file=8.png -x 12  -y 20;usleep 200000;fbink -g file=9.png -x 12  -y 20;usleep 200000;fbink -g file=10.png -x 12  -y 20;usleep 200000;fbink -g file=11.png -x 12  -y 20;usleep 200000;fbink -g file=12.png -x 12  -y 20;usleep 200000;fbink -g file=13.png -x 12  -y 20;usleep 200000;fbink -g file=14.png -x 12  -y 20;usleep 200000;fbink -g file=15.png -x 12  -y 20;usleep 200000;fbink -g file=16.png -x 12  -y 20;usleep 200000;fbink -g file=17.png -x 12  -y 20;usleep 200000;fbink -g file=18.png -x 12  -y 20;usleep 200000;fbink -g file=19.png -x 12  -y 20;usleep 200000;fbink -g file=20.png -x 12  -y 20;usleep 200000;fbink -g file=21.png -x 12  -y 20;usleep 200000;fbink -g file=22.png -x 12  -y 20;usleep 200000;fbink -g file=23.png -x 12  -y 20;usleep 200000;fbink -g file=24.png -x 12  -y 20;usleep 200000;fbink -g file=25.png -x 12  -y 20;usleep 200000;fbink -g file=26.png -x 12  -y 20;usleep 200000;fbink -g file=27.png -x 12  -y 20;usleep 200000;fbink -g file=28.png -x 12  -y 20;usleep 200000;fbink -g file=29.png -x 12  -y 20;usleep 200000;done
Click image for larger version

Name:	worms.gif
Views:	284
Size:	947.9 KB
ID:	165143



SCNR
Attached Files
File Type: zip MovingWorms.zip (1.20 MB, 245 views)

Last edited by PoP; 07-21-2018 at 04:21 PM. Reason: spoiled the effect
PoP is offline   Reply With Quote
Old 07-21-2018, 02:32 PM   #13
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,226
Karma: 10666665
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v1.2.5 .

Expands on the image display feature of v1.2.0 by adding proper transparency support (i.e., if you feed it an image with an alpha channel, it'll do the right thing with it) .

You can opt to disable this via a flag, because it comes with a bit of a performance penalty .

It also properly handles 4bpp framebuffers, for real this time. Turns out the JPEG issue in 1.2.0 was actually much more generalized, I just hadn't really noticed it, because, err, coding at night, no frontlight... . Oops?.
(Text was mostly unaffected by the issue, because the fact that it's either black or white was hiding the underlying issue ).
NiLuJe is offline   Reply With Quote
Old 07-23-2018, 09:52 PM   #14
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
Star-War Display

Click image for larger version

Name:	SW.sh.gif
Views:	339
Size:	171.3 KB
ID:	165173


Spoiler:

Code:
/mnt/us/SW.sh StarWar.txt
Code:
#!/bin/sh
#
#Star War-Display-esque of a file
L1=" "
L2=" "
L3=" "
L4=" "
L6=" "
file="/mnt/us/$1"
fbink -cmp -y 10 -S 6 "THE PHANTOM MENACE"
while IFS= read -r line
do
  L6=$line
  fbink -mp -y 103 -S 1 "$L1"
  fbink -mp -y 53 -S 2 "$L2"
  fbink -mp -y 37 -S 3 "$L3"
  fbink -mp -y 29 -S 4 "$L4"
  fbink -mp -y 24 -S 5 "$L5"
  fbink -mp -y 21 -S 6 "$L6"
  usleep 1000000
  L1=$L2
  L2=$L3
  L3=$L4
  L4=$L5
  L5=$L6
done <"$file"


Try it on any file :
Attached Files
File Type: zip StarWar.zip (846 Bytes, 253 views)
PoP is offline   Reply With Quote
Old 07-30-2018, 08:45 PM   #15
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,205
Karma: 36937861
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3₅.₁₀.₂
I was trying to zoom a single "X" character on a K3:

Code:
#!/bin/sh
#
#Zoom
i=1
while [ "$i" -le "45" ]; do
  fbink -cmp -S $i "X"
  /mnt/us/screenshot.sh
  usleep 1000000
  i=$(($i + 1))
done
It started all right from S 1 to S 36:
S 1 Click image for larger version

Name:	20180730191301.png
Views:	252
Size:	434 Bytes
ID:	165308 S 2Click image for larger version

Name:	20180730191302.png
Views:	268
Size:	434 Bytes
ID:	165309 S 3 Click image for larger version

Name:	20180730191303.png
Views:	252
Size:	462 Bytes
ID:	165310 ... to S 36 Click image for larger version

Name:	20180730191350.png
Views:	279
Size:	877 Bytes
ID:	165311

But from S 37 to S 45 doubled "X" appeared:
S 37 Click image for larger version

Name:	20180730191351.png
Views:	252
Size:	1.3 KB
ID:	165312 ... to S 45 Click image for larger version

Name:	20180730191403.png
Views:	268
Size:	1.5 KB
ID:	165313

Any idea what's wrong?
PoP is offline   Reply With Quote
Reply

Tags
eips, fbink

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FBInk: A small tool/library to print crap on your screen! NiLuJe Kobo Developer's Corner 88 02-11-2019 02:29 PM
Small print Broadback Conversion 12 12-12-2011 03:31 PM
Small Tool to change book order (PRS-x50) goaspy Sony Reader 113 10-14-2011 04:28 PM
small print breezeman Introduce Yourself 13 07-03-2011 10:02 AM


All times are GMT -4. The time now is 04:45 AM.


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