View previous topic :: View next topic |
Author |
Message |
haemtenem
Joined: 19 May 2014 Posts: 1
|
inverting pixel in ccs |
Posted: Mon May 19, 2014 4:51 am |
|
|
hi, i want to show my data on GLCD with pic16F series.
I use ccs compiler.
I want to make my output be similar to following picture that i attach, pixels are inverted.
Can anyone help me?
thanks
http://8pic.ir/images/73332841988849275670.png |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19589
|
|
Posted: Tue May 20, 2014 4:17 am |
|
|
Depends totally on your display, colours available, and the driver being used.
However normally, you would call a drawing function to draw a rectangle covering the area required, with the pen set to 'set' the pixels, and then draw the text with the pen set to clear the pixels.
Best Wishes |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9269 Location: Greensville,Ontario
|
|
Posted: Tue May 20, 2014 5:09 am |
|
|
As Mr. T says depends on the LCD module.
Some will have a 'reverse character' or 'inverse' option. Every video card for every PC has had that since '77!
Be sure to download the datasheet of any LCD module you might purchase and see if it's an option.it might cost a few pennies more but it will be faster/easier to code than the pic doing it.
hth
jay |
|
|
|