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

RGB LED on Airlift Shield
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RGB LED on Airlift Shield

by tinkerer2102 on Sun Aug 02, 2020 4:56 pm

Hello,
I am looking for a way to access and control the RGB LED on Airlift Shield, product no. 4285. I have read that the colors of the LED are connected to the GPIO pins 25, 26 and 27 of the ESP32 chip, but I am wondering, is there a way to control these GPIO pins using commands sent from an Arduino Uno (or a Metro 0 Express) via the SPI bus without having to reprogram the firmware in the ESP32?
Thank you in advance.
Chris Jones

tinkerer2102
 
Posts: 3
Joined: Fri Jul 27, 2012 6:46 pm

Re: RGB LED on Airlift Shield

by adafruit_support_carter on Mon Aug 03, 2020 3:00 pm

There's a digital write in the CircuitPython library you can use:
https://github.com/adafruit/Adafruit_Ci ... pi.py#L820

adafruit_support_carter
 
Posts: 16922
Joined: Tue Nov 29, 2016 2:45 pm

Re: RGB LED on Airlift Shield

by tinkerer2102 on Mon Aug 03, 2020 4:22 pm

I also found a “setLEDs()” method in WiFi.cpp, which is what I was looking for. Thank you for your help.

tinkerer2102
 
Posts: 3
Joined: Fri Jul 27, 2012 6:46 pm

Re: RGB LED on Airlift Shield

by tinkerer2102 on Tue Aug 04, 2020 12:37 am

I found a bug in the code for the setLEDs() method of the WiFiClass class in the WiFi.cpp file. The pins for the Red and Green LEDs are switched in the code. According to the Pinouts page of the "Adafruit Airlift Shield - ESP32 WiFi Co-Processor" Learning Guide, the Red LED is connected to pin 26 of the ESP32, and the Green LED is connected to pin 25. In the code, the Red LED is connected to pin 25, and the Green LED is connected to pin 26. The Learning Guide is correct.
Chris

tinkerer2102
 
Posts: 3
Joined: Fri Jul 27, 2012 6:46 pm

Re: RGB LED on Airlift Shield

by adafruit_support_carter on Tue Aug 04, 2020 10:53 am

Yep, does appear to be swapped in the firmware code. Thanks. Passed the info on.

adafruit_support_carter
 
Posts: 16922
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.