Tag Archives: raspberry

Programming for a Touchscreen on the Raspberry Pi

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;

TFT TFT TFT

Continue reading Programming for a Touchscreen on the Raspberry Pi

View images as ASCII in the terminal on a 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.


Cacaview Raspberry Pi



Install and using cacaview


Installing 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
hjkl Move



Continue reading View images as ASCII in the terminal on a Raspberry Pi