4Dsystem display library
Posted: Wed Jan 26, 2022 9:15 am
Hello,
We use 4DSystem serial display, mainly for educational purpose.
There is a vast family of these, with 3 types of processor (goldelox, picaso, diablo16), oled or lcd, in many dimension, touch enabled or not.
Each family has his own command set, so we made a library to abstract the processor type, and made portage between family easier.
First job was to list all functions for all families, which is resumed in the csv file https://github.com/alex31/chibios_enac_various_common/blob/master/TOOLS/fonctions%204dsystem%20SPE.csv
Then, a script https://github.com/alex31/chibios_enac_various_common/blob/master/TOOLS/gen4DSysLib.pl generates the low level library : files display4DS_ll.c/h.
A higher level library, which use the low level one, is also provided : display4DS.c/h.
Theses library can use serial or uart driver, choice has to be done at compile time. When graphic primitives or bitmap are sent, using uart (dma) driver save mcu cycles.
All can be find in this repository https://github.com/alex31/chibios_enac_various_common/ (which is a big mess ...) in the display4DS* files.
If you plan to use 4D system screen, this project can be a help for you at different level : You can use the csv file if you plan to write your own code generator, you can use the csv file and modify the code generator for your own use, you can only use the low level stuff, or use the code as is.
I can send example of use if needed.
Alexandre
We use 4DSystem serial display, mainly for educational purpose.
There is a vast family of these, with 3 types of processor (goldelox, picaso, diablo16), oled or lcd, in many dimension, touch enabled or not.
Each family has his own command set, so we made a library to abstract the processor type, and made portage between family easier.
First job was to list all functions for all families, which is resumed in the csv file https://github.com/alex31/chibios_enac_various_common/blob/master/TOOLS/fonctions%204dsystem%20SPE.csv
Then, a script https://github.com/alex31/chibios_enac_various_common/blob/master/TOOLS/gen4DSysLib.pl generates the low level library : files display4DS_ll.c/h.
A higher level library, which use the low level one, is also provided : display4DS.c/h.
Theses library can use serial or uart driver, choice has to be done at compile time. When graphic primitives or bitmap are sent, using uart (dma) driver save mcu cycles.
All can be find in this repository https://github.com/alex31/chibios_enac_various_common/ (which is a big mess ...) in the display4DS* files.
If you plan to use 4D system screen, this project can be a help for you at different level : You can use the csv file if you plan to write your own code generator, you can use the csv file and modify the code generator for your own use, you can only use the low level stuff, or use the code as is.
I can send example of use if needed.
Alexandre