Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Adafruit IO Basics: Color- Cathode Edit Recommendation
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Adafruit IO Basics: Color- Cathode Edit Recommendation

by pumpkinheadnick on Tue Aug 25, 2020 1:12 pm

Hello. I just got the Adafruit Feather HUZZAH ESP8266 and was doing some examples like this one (https://learn.adafruit.com/adafruit-io- ... duino-code) but noticed that it was not working for me. After reading through the code page I noticed a line that said

Because we are using a common anode RGB LED, we will need to flip the incoming RGB values. We do this by subtracting the values from 255 before sending the values to analogWrite.

If you are using a common cathode RGB LED, you can send the values directly to analogWrite from data->toRed(), data->toGreen(), and data->toBlue().


but after making the code modification it was still not working. After some more research I found that I needed to change the 3.3v wire to a ground wire. I think that you should include a line about that in the documentation. Maybe also include it on the "wiring" tab too.

I mean I do see that it says
1x diffused RGB LED - common anode

but honestly I did not know there were two different types of leds or how to tell the difference until I read this page...

https://randomnerdtutorials.com/electronics-basics-how-do-rgb-leds-work/#:~:text=In%20a%20common%20cathode%20RGB,cathode%20or%20one%20common%20anode.

That is all. Hope that I can help improve the example for others.

pumpkinheadnick
 
Posts: 77
Joined: Mon Jan 04, 2016 8:23 pm

Re: Adafruit IO Basics: Color- Cathode Edit Recommendation

by brubell on Wed Aug 26, 2020 12:00 pm

Hi, thanks for providing feedback. I have bolded the type of LED listed on the Wiring page and added emphasis (bolded) to the "If you are using a common cathode RGB LED" on the code page.

Does this seem more clear?

brubell
 
Posts: 1061
Joined: Fri Jul 17, 2015 10:33 pm

Re: Adafruit IO Basics: Color- Cathode Edit Recommendation

by pumpkinheadnick on Wed Sep 16, 2020 3:20 pm

Sorry for the delay.

But yeah, that could work.

pumpkinheadnick
 
Posts: 77
Joined: Mon Jan 04, 2016 8:23 pm

Please be positive and constructive with your questions and comments.