So I heard that people like notepad demos on their touchscreens. I thought, let's build a very simple one for the official rename of ChibiOS-GLCD-Driver to ChibiOS/GFX.
After calibration, you can choose between 5 different colors (and white for erasing) and between 5 different pen thicknesses. Thickness 1 is pixel drawign.
The demo can be found in demos/notepad.
picture 2: http://www.abload.de/img/notepad_linestmu9y.jpg
picture 1: http://www.abload.de/img/notepad_chibiosluusx.jpg
Code can be found here: https://github.com/Tectu/ChibiOS-LCD-Dr ... pad/main.c
The code in the main() is quite "ugly", but I couldn't use things like gdispGetPixelColor() because not all display controllers do offer that.
~ Tectu
P.S. Yes, the yellow pixel on the green color box is dust / dirt.
Notepad Demo
Return to “LCD Driver and Graphic Framework”
Who is online
Users browsing this forum: No registered users and 3 guests