CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

inverting pixel in ccs

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
haemtenem



Joined: 19 May 2014
Posts: 1

View user's profile Send private message

inverting pixel in ccs
PostPosted: Mon May 19, 2014 4:51 am     Reply with quote

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: 19447

View user's profile Send private message

PostPosted: Tue May 20, 2014 4:17 am     Reply with quote

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: 9202
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue May 20, 2014 5:09 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group