<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[PROJECT] Color mixing with a RGB LED</title><link>/learn/learning-center/stem-academy/microbit/b/blog/posts/project-color-mixing-with-a-rgb-led</link><description>Color mixingRGB LED - description and typesColor mixing program Color mixingOne can display a certain color by mixing only three basic colors: Red, Green and Blue. Adding different levels of each color we get many colors. If all colors are OFF,...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [PROJECT] Color mixing with a RGB LED</title><link>https://community.element14.com/learn/learning-center/stem-academy/microbit/b/blog/posts/project-color-mixing-with-a-rgb-led</link><pubDate>Sat, 01 Dec 2018 23:19:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:11c554f1-988f-4fba-9c63-dffc954ad6d2</guid><dc:creator>james.flynn</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nice site reference for the colors!&amp;nbsp; I always used:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;#define BLACK_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/p&gt;&lt;p&gt;#define RED_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; //RED&lt;/p&gt;&lt;p&gt;#define GREEN_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; //GREEN&lt;/p&gt;&lt;p&gt;#define YELLOW_LED&amp;nbsp;&amp;nbsp; 3&amp;nbsp; //RED + GREEN&lt;/p&gt;&lt;p&gt;#define BLUE_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp; //&lt;/p&gt;&lt;p&gt;#define MAGENTA_LED 5&amp;nbsp; //BLUE + RED&lt;/p&gt;&lt;p&gt;#define CYAN_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp; //GREEN+ BLUE&lt;/p&gt;&lt;p&gt;#define WHITE_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp; //GREEN+BLUE+RED&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But your referenced site allows for a lot of variation (in fairness, I always just used RGB leds that were either just on or off).&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6029&amp;AppID=140&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>