{"id":1085,"date":"2023-10-06T17:19:19","date_gmt":"2023-10-06T16:19:19","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=1085"},"modified":"2025-02-09T19:28:09","modified_gmt":"2025-02-09T19:28:09","slug":"fastled-library-and-rgb-led","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/fastled-library-and-rgb-led\/","title":{"rendered":"FASTLed Library and RGB LED"},"content":{"rendered":"<p>Recently I was trying to make a device that will indicate different status through different light colors.<\/p>\n<p>Now after developing everything a strange thing started to happen &#8211; the RGB LED was not showing the colors properly. For example &#8211; suppose the current color is Green and then I put Red. It is not glowing pure RED, the Green pixel (the individual green pixel of the LED) is still faintly on.<\/p>\n<p>After some thoughts and searches found the solution is to first turn of the LED fully<\/p>\n<pre class='wp-code-highlight prettyprint'>leds[0] = CRGB::Black;\r\nFastLED.show();<\/pre>\n<p>and then show the new color.<\/p>\n<p>Hope this helps someone.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was trying to make a device that will indicate different status through different light colors. Now after developing everything a strange thing started to happen &#8211; the RGB LED was not showing the colors properly. For example &#8211; suppose the current color is Green and then I put Red. It is not glowing&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/fastled-library-and-rgb-led\/\">Continue reading <span class=\"screen-reader-text\">FASTLed Library and RGB LED<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,373],"tags":[414,411,410,413,63,412],"class_list":["post-1085","post","type-post","status-publish","format-standard","hentry","category-arduino","category-electronics","tag-arduino-rgb-led","tag-fast-led","tag-fastled","tag-neo-pixel","tag-rgb-led","tag-rgb-pixel","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":2,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/1085\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/1085\/revisions\/1099"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}