To accept input from a touchscreen we have to use the event interface of the Linux input system. We use the ioctl capabilities of the event interface, in addition to the normal read and write calls to get information from the touchscreen. This blog post explains how to use the touchscreen within your own programs using C as well as writing directly to the framebuffer.
Images of my TFT from a previous post;
Continue reading Programming for a Touchscreen on the Raspberry Pi
I run my Raspberry Pi headless and I don’t like to access X windows.
Sometimes I need to look at an image, mostly PNG. I use my Pi to produce graphs and I want to see if the change took.
cacaview allows me to view the images as ASCII in the terminal. Which allows me to have a quick look at the image, and it also looks kinda cool and retro.
Install and using cacaview
pi@raspberrypi ~ $sudo apt-get install caca-utils
To view an image:
pi@raspberrypi ~ $cacaview gp.png
+ Zoom in
– Zoom out
d Change differ
Continue reading View images as ASCII in the terminal on a Raspberry Pi