Notepad Demo

Locked
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Notepad Demo

Post 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.
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: Notepad Demo

Post by mobyfab »

Looks great, good job!
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: Notepad Demo

Post by Abhishek »

Looks nice.

Hello ChibiOS/GFX :) !
Locked