Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fodderzone

Pages: 1
1
TinyDuino Processors & TinyShields / Tiny Screen Color Values
« on: February 22, 2015, 05:35:14 PM »
I just got a TinyScreen and have started playing around with it and came across a basic question.

What are the constants for colors? Or more to the point, the color appears to be set using a uint8_t, but the values I see defined as constants for colors don't make sense to me. Can someone help me understand how colors are represented using uint8_t? Like RGB... or is there some set of defines I can use?

Here are some of the constants I see in examples:

#define   BLACK         0x00
#define   BLUE           0xE0
#define   RED             0x03
#define   GREEN         0x1C
#define   DGREEN       0x0C
#define     YELLOW       0x1F


I could figure it out on my own, but boy that's a lot values to test and figure out.

Thanks!! 

Pages: 1
SMF spam blocked by CleanTalk