Color codes for the touchscreen
Moderators: adafruit_support_bill, adafruit

Color codes for the touchscreen

by kqpro on Mon Mar 25, 2013 4:18 pm

Is there a table of codes for all the colors for the TFT touchscreen ? Currently I do not know how the code for the color works.
Thanks.
kqpro
 
Posts: 24
Joined: Sun Feb 10, 2013 1:41 pm

Re: Color codes for the touchscreen

by adafruit_support_mike on Mon Mar 25, 2013 8:13 pm

Our tutorial for the graphics library might help you out: http://learn.adafruit.com/adafruit-gfx- ... -and-units
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 9141
Joined: Thu Feb 11, 2010 1:51 pm

Re: Color codes for the touchscreen

by irie on Tue Jul 08, 2014 7:38 am

I know, it's been a long time since this question was asked, but maybe my reply helps anybody else stumbling upon this post in search for the right color codes to use with the screen.
The color values the Arduino requires are in the RGB565-format. Thanks to Henning Karlsen we now have this awesome color calculator and no more problems finding the right color :) : http://www.henningkarlsen.com/electroni ... rgb565.php
irie
 
Posts: 6
Joined: Mon Jun 23, 2014 10:07 am

Re: Color codes for the touchscreen

by adafruit_support_mike on Tue Jul 08, 2014 5:44 pm

Neat! Thanks for posting the link. ;-)
User avatar
adafruit_support_mike
 
Posts: 9141
Joined: Thu Feb 11, 2010 1:51 pm