see here :
https://github.com/realPy/dothat-module
This is my kernel module and you have an example in C ;)
You can control the display o tron hat with the language you want with sysfs.
See the ioclient.c in the source it use the touch mapping , the LCD to draw the bandwith of a tun0 interface in real time with clock. When you touch a sensor it will draw a sweep rainbow with LCD.
All you need is to write and read to a file with a fopen, fprintf, ffscanf . Very very easy to use.
You can help me to produce a lib C that use the sysfs or wait i'll currently produce one.
So your help is welcome ;)
↧
DisplayOTronHat C interface
↧