Page 1 of 1

Notepad Demo

Posted: Thu Aug 23, 2012 3:23 pm
by Tectu
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.

Re: Notepad Demo

Posted: Thu Aug 23, 2012 9:20 pm
by mobyfab
Looks great, good job!

Re: Notepad Demo

Posted: Fri Aug 24, 2012 7:24 am
by Abhishek
Looks nice.

Hello ChibiOS/GFX :) !