Dasduino ConnectPlus IO32 RGB LED control code example

Customer:

I have a question about code for the built-in RGB LED on the Dasduino (IO32). I haven’t been able to find code to control it, so if you have some ready-made code or documentation that could explain how to control it, I would be very grateful.

Original message (Croatian)

Imam pitanje oko koda za ugrađeni RGB ledicu na dasduinu(IO32), nisam bio u mogucnosti naci kod za kontrolu te ledice pa ako imate neki gotovi kod koji bi mi mogao pojasniti kako upravljati sa njom ili neku uputo bio bi jako zahalan

Originally submitted via email support on 7 January 2025. Migrated to the forum for community visibility.

Soldered Support:

This can be tricky to find. If you select the Dasduino ConnectPlus model (the pin IO32 suggests this is the CONNECTPLUS), then go to Examples in the Arduino IDE, under ‘Examples for Dasduino ConnectPlus (ESP32)’ you’ll see examples for the onboard LED.

Briefly, the neopixel object is created like this:

#include "WS2812-SOLDERED.h"
WS2812 pixels(1, LEDWS_BUILTIN); // WSLED object

In setup() you need to initialize it:

pixels.begin(); // Init NeoPixel

Then use it like any other neopixel:

while (true)
{
  pixels.setPixelColor(0, pixels.Color(0x20, 0, 0)); // Set the color to red
  pixels.show();
  delay(400);
  pixels.clear();
  pixels.show();
  delay(400);
}

The library can be downloaded from GitHub - SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library: WS2812 Addressable Leds Library by Soldered · GitHub if it’s not automatically found.

Original message (Croatian)

ovo je nekad teže pronaći, ako odabereš taj Dasduino model (ako se pin zove IO32 mislim da je CONNECTPLUS) i onda odeš u Examples u Arduinu, pod ‘Examples for Dasduino ConnectPlus (ESP32)’ vidjeti ćeš sljedeće:

Tu se nalaze example-ovi za tu onboard LEDicu. Ukratko, neopixel objekt se napravi ovako:

#include “WS2812-SOLDERED.h”
WS2812 pixels(1, LEDWS_BUILTIN); // WSLED object
u setup-u se mora begin-ati:

pixels.begin(); // Init NeoPixel
i onda se koristi kao bilo koji drugi neopixel:

while (true)
{
pixels.setPixelColor(0, pixels.Color(0x20, 0, 0)); // Set the color to red
pixels.show();
delay(400);
pixels.clear();
pixels.show();
delay(400);
}
Library se može preuzeti odavde, ako već ne bude automatski pronađen: GitHub - SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library: WS2812 Addressable Leds Library by Soldered · GitHub

Nadam se da ovo pomaže :slight_smile:

Attachment omitted in migration: image.png