# Accessing RGB Light on Unexpected Maker ProS3

**URL:** <https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208>\
**Category:** Core Electronics\
**Created:** [9 November 2024 20:54 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208 "2024-11-09T20:54:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris282737](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@Chris282737](https://forum.core-electronics.com.au/u/Chris282737)\
**Post date:** [9 November 2024 20:54 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/1 "2024-11-09T20:54:11Z")

</div>

Hi there

Ive recently purchased the Unexpected Maker ProS3 board. I wiped the board and uploaded my first test code, where I try to access the RGB Light.

Ive tried numerous tests but for some reason it still does not turn the light on or off.

Ive tried using the NeoPixel plugin, and Iǘe also tried doing a simple digitalwrite to pin 18

Would someone happen to have some sample code to access the RGB?

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [9 November 2024 22:18 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/2 "2024-11-09T22:18:20Z")

</div>

What is the code you are using for your first test?

---

<div class="post-metadata">

**Author:** ![Seon\_UM](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/seon_um/32/9119_2.png) [@Seon\_UM](https://forum.core-electronics.com.au/u/Seon_UM)\
**Post date:** [10 November 2024 06:40 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/3 "2024-11-10T06:40:01Z")

</div>

Did you enable LDO2? The RGB LED is powered from LDO2, not LDO1.

I provide a helper for Arduino that has examples on how to use the RGB LED - which automatically enables the power for LDO2.

Info for the helper library is available here:

> **[esp32s3/code/arduino at main · UnexpectedMaker/esp32s3](https://github.com/UnexpectedMaker/esp32s3/tree/main/code/arduino)**
>
> Assorted files for my ESP32-S3 development boards. Contribute to UnexpectedMaker/esp32s3 development by creating an account on GitHub.

Seon  
Unexpected Maker

---

<div class="post-metadata">

**Author:** ![Chris282737](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@Chris282737](https://forum.core-electronics.com.au/u/Chris282737)\
**Post date:** [12 November 2024 20:39 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/4 "2024-11-12T20:39:30Z")

</div>

Hey there. Sorry for taking a while to come back on this thread. The code I was running as as follows;

(Config.h defines 0 pixels and pin 18)

```auto
#include <Arduino.h>
#include "config.h"
#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel pixels(NUMPIXELS, PIN_NEOPIXEL, NEO_RGB + NEO_KHZ800);

void setup() {
  // Turn on the RGB LED
  pixels.begin();
  pixels.setBrightness(200);
  pixels.setPixelColor(0,pixels.Color(255,0,0));
  pixels.show();
}

```

---

<div class="post-metadata">

**Author:** ![Chris282737](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@Chris282737](https://forum.core-electronics.com.au/u/Chris282737)\
**Post date:** [12 November 2024 20:48 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/5 "2024-11-12T20:48:29Z")

</div>

Hi Seon

I also tried doing this;

//Turn RGB Light on  
pinMode(LDO2, OUTPUT);  
digitalWrite(LDO2, HIGH);

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [12 November 2024 20:56 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/6 "2024-11-12T20:56:03Z")

</div>

> [@Chris282737](#):
>
> (Config.h defines 0 pixels and pin 18)

That would need to be 1 pixel to make it light. GPIO18 should be the right one for the LED. LDO2 needs to be enabled (GPIO17).

---

<div class="post-metadata">

**Author:** ![Chris282737](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@Chris282737](https://forum.core-electronics.com.au/u/Chris282737)\
**Post date:** [12 November 2024 21:59 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/7 "2024-11-12T21:59:00Z")

</div>

ah great. I did this and it’s working now!

```auto
#include <Arduino.h>
#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel pixels(NUMPIXELS, PIN_NEOPIXEL, NEO_RGB + NEO_KHZ800);

void setup() {

  // Turn on the RGB LED
  pinMode(RGB_PWR, OUTPUT); // Enable the output
  digitalWrite(RGB_PWR, ONHIGH); // Set Power on
  pixels.begin();
  pixels.setBrightness(200);
  pixels.setPixelColor(0,pixels.Color(255,0,0));
  pixels.show();
}

```

Thanks so much for this!

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [12 November 2024 22:57 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/8 "2024-11-12T22:57:32Z")

</div>

Thanks for letting us know that you got it sorted.

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [13 November 2024 02:11 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/9 "2024-11-13T02:11:46Z")

</div>

Thanks @Jeff105671 for spotting that one.

Glad to see this got sorted out.

---

<div class="post-metadata">

**Author:** ![Seon\_UM](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/seon_um/32/9119_2.png) [@Seon\_UM](https://forum.core-electronics.com.au/u/Seon_UM)\
**Post date:** [14 November 2024 08:24 UTC](https://forum.core-electronics.com.au/t/accessing-rgb-light-on-unexpected-maker-pros3/21208/10 "2024-11-14T08:24:38Z")

</div>

Still easier to just do this 🙂

```auto
#include <UMS3.h>

UMS3 ums3;

void setup() {
  ums3.begin();
  ums3.setPixelBrightness(200);
  ums3.setPixelColor(255,0,0);
}

```
