A tool for printing text and graphics to the eink display. The image data is printed directly to the display's framebuffer.
- Download the
fips
executable from the latest release. It is compiled for the fread.ink firmware. - Copy the
fips
executable to the device, e.g. via USB networking.
./fips -g image_path [-f]
where:
- -g is the parameter for displaying a PNG image
- image_path is the path to the image's file
- -f is an optional parameter for making a full update of the display, the default is partial update
./fips -c
where:
- -c is the parameter for clearing the display
The easiest way to build the tool from sources is to use the toolchain in the fread-vagrant VM.
- Copy the
fips.c
source file to the runningfread-vagrant
VM. - SSH to the
fread-vagrant
VM. - Execute
sudo apt-get install libpng12-dev
to install the include files forlibpng
. This is required for the tool to compile to its dependent libraries. - Copy the
libpng12.so.0.50.0
andlibz.so.1.2.8
shared libraries to the same folder wherefips.c
was copied. This is required for the tool to link to its dependent libraries. You can find these libraries in the fread-userland VM or on a device with the fread.ink firmware already installed. - Execute the following command:
arm-linux-gnueabihf-gcc -std=gnu99 -I/usr/include -I/usr/include/libpng fips.c -o fips -l:libpng12.so.0.50.0 -l:libz.so.1.2.8
The fips
executable will be generated in the same folder. You can now copy it to a device which has the fread.ink firmware installed.