eBook reader

The place to share and discuss your Ultibo projects.
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Tue Apr 09, 2019 2:58 am

OpenGLES GPU to LCD via SPI, should work for OpenVG too?
http://asphyre.net/products/pxl

Too much stuff in Ultibo cannot keep up ;)
But these are for the native SPI mode LCD drivers chip, not the customer SPI to shift registers to parallel versions.
Hmm, what if I take the LCD off the PCB?
What driver chip is it using?

A google finds this re Waveshare 35b, I had forgot it was 480x320.
dmesg |grep graphics
[ 7.845964] graphics fb1: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 32 KiB buffer memory, fps=100, spi0.0 at 32 MHz


And this
https://forum.arduino.cc/index.php?topic=443770.30

Bookmarked this one, lots of useful info and even adapter boards to test LCDs
https://www.ramtex.dk/

Hmm, could this be the circuit? Time to crank up the CRO on the SPI ports?
https://github.com/notro/fbtft/wiki/SPI ... ce-circuit
User avatar
Ultibo
Site Admin
Posts: 2217
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: eBook reader

Postby Ultibo » Wed Apr 10, 2019 12:29 am

Gavinmc42 wrote:OpenGLES GPU to LCD via SPI, should work for OpenVG too?
http://asphyre.net/products/pxl

That example has already been ported to Ultibo, see DisplaySPIAndGPU.

Can't say if it would work for OpenVG as well, it possibly relies on an OpenGL API to do the rendering to an off screen buffer.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Sat Apr 20, 2019 8:36 am

Been learning lots and have found a way (that i can understand) to go to the next level.

Of the all the languages and script interpreters i have looked at, tcl/tk seems to be the closest to what I want to do.
The FP version of LIL will get me an extensible tcl like script interpreter.
The tk widget set is small enough and has the features I think I need.
https://wiki.tcl-lang.org/page/What+is+Tk

1st stage will be to use tcl/tk to make a Windows/Linux PDA with all the app functions, text viewer, clock, calculator, calendar, alarm.
2nd stage convert LIL to Ultibo. How much depends on LCL libs?
3rd stage make a graphics console version of tk.
4th stage make a VG version of tk.

Will this be of use to make a self hosting editor.
http://runtimeterror.com/tools/liteproc/

The advantages I see with extensible languages is when self hosted they can be used to add features.
This can be done with Forth, but that is an unreadable language once written :lol:

Once lil/vg is working it could be extended further with OpenGLES.
And then into a 3D game with built in scripting.
Any slow parts can be rewritten in Ultibo for speed.

Even if I don't end up going this way at least I will have learned tcl/tk which runs on everything.

Seems to be plenty of tcl calculator examples around
Ugly clock example ;)
https://en.wikibooks.org/wiki/Tcl_Progr ... _A/D_clock
But just see how small the code is.

I like the sliderule example, they go back to the 1700's, so known in Steampunk Era ;)
The presentation example goes back to one of the earliest days of Ultibo, a slideshow program.

One of the things Arduino does is have two section, setup and loop.
Setup is the initialization code and loop is the main.

For theming purposes, setup will be used to initialize the colour/shape scheme.
Stone, Bronze, Iron, Steam, Diesel, Deco and other Punk themes plus SiFi ones, The Orville, Star Trek etc.
Because this will be scripted it should be easy to change the look of this Punk OS.

Ha ha, just had a vision of a Barbie and Ken theme, immediately followed by a Unicorn version.
i suppose fantasy themes are possible too, Tolkien, Harry Potter, Warhammer (is that SiFi or fantasy?)
OK, getting crazy now, a Teletubbie theme?
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Wed Apr 24, 2019 5:41 am

The main part of a reader is reading ebooks.
Finally got around to doing some research.

What format to use, EPUB, PDF?
I have yet to find a viewer in free pascal :(

There also seems to be a demand for an Open source eReader OS :o
Never thought about it before but some people don't like the locked in Kindles etc

The Ultibo port of AJ Starks library can do images as well as text.
Lots to learn, about the only file format I know is plain old ascii text.
There does seem to be some fpc HTML code around

Clock, Calculator, Keyboard GUI forms have been grokked.
Time for Calendar and text viewer.
Perhaps the first version of a text viewer could be a Terminal Console?

The actual ebook viewer version is going to require lots more learning.
So second version is a scrolling ascii text viewer?

Many ebooks like those from Gutenberg can be converted to plain text.
59,000+ books on Gutenberg, that's a lot of reading even for me ;)
EPUB looks to be the common open format, so add that to the learning list.

https://en.wikipedia.org/wiki/EPUB
Zipped XHTML? - great, that means an unzipper and XMLviewer?
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Wed Apr 24, 2019 8:47 am

Test examples and specs etc for EPUB files.
https://github.com/IDPF/epub3-samples
Linked from here
http://idpf.org/ongoing
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Thu May 16, 2019 8:52 am

Been spending time in Linux land.
AJ Starks Go OpenVG code version of my Punk OS has been tested on a few Linux OS's now.
Latest one is the Yocto Pi3 version. Lucky someone has made some images ;)
https://jumpnowtek.com/rpi/Raspberry-Pi ... Yocto.html
Use the big version it has the videocore stuff.

Why do this?
I realized an Ultibo OpenVG GUI can also work on a X11 less Linux box.

Now I need to make a Free Pascal OpenVG version, write once for Linux, should just work for Ultibo?

With a Linux with OpenVG Desktop I can used FPC in command line to compile for Ultibo.
Not exactly self hosting but smaller than Raspbian Lite which did not work out of the box.
My preferred small Linux PiCore needs more work.
Gavinmc42
Posts: 1595
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: eBook reader

Postby Gavinmc42 » Sat Jun 01, 2019 10:29 am

This OpenVG stuff works on the Pi 7" screen.
viewtopic.php?f=14&t=1332&p=9153#p9153

I probably need to make a book reader app to see if this 7" is good enough for text reading.
I don't think it will look too good on a lower res screen.
The 4" Hyperpixel is also 800x480 but because the pixels are smaller you end up with retina type display.
Not sure how well DPI displays will work in Ultibo, a driver will need to be DMA frame buffer to LCD copied?

Anyway the Pi 7" screen with OpenVG GUI is probably usable for all sorts of control gear.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest