Notepad Demo

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Notepad Demo

Postby Tectu » Thu Aug 23, 2012 3:23 pm

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: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Notepad Demo

Postby mobyfab » Thu Aug 23, 2012 9:20 pm

Looks great, good job!

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Notepad Demo

Postby Abhishek » Fri Aug 24, 2012 7:24 am

Looks nice.

Hello ChibiOS/GFX :) !


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 3 guests