Arduino R4 not lighting an addressable LED

For the past couple of days I have been trying to turn on a SK6812 RGBW LED with my new Arduino R4 Wifi board and after trying around 10 different codes with the Adafruit NeoPixel library (even the example ones) and other libraries I don’t understand why the LED doesn’t work. If I apply current from the 5v pin to the data pin it turns on, so the LED isn’t broken and the soldering is fine, also the test code to turn the internal 13th LED pin works (the internal LED Matrix too) but still no light on the SK.
All numerical pins have 2.5v on idle powered through USB. The pin 13 gets 5vs if a jack is connected and the pin open with this test code, still no light. Capacitor or resistance doesn’t make any difference.
I have tried absolutely everything I imagined and found on internet for hours, if you guys know a solution I’ll be blessed.
Here is the code I'm using at the moment to make tests:

#include <arduino.h>
#include <Adafruit_NeoPixel.h>

#define LED_PIN    13
#define LED_COUNT 1

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_RGBW + NEO_KHZ800);

void setup() {
  // put your setup code here, to run once:
pinMode(13, OUTPUT);
 strip.begin();
strip.setPixelColor(0, 255, 0, 0, 50);
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(13, HIGH);   // set the LED on
  delay(2000);              // wait for a second
  digitalWrite(13, LOW);    // set the LED off
  delay(2000); 

   digitalWrite(6, HIGH);   // set the LED on
  delay(2000);              // wait for a second
  digitalWrite(6, LOW);    // set the LED off
  delay(2000); 

strip.show();

}

There's an outstanding pull request to add support for the Uno R4 to the Adafruit_NeoPixel library . It's only a few minutes work to update the one file that needs to be changed. I can verify that it works.

Tried to modify the .cpp of the library with the added code and at compiling it shows many different errors.

And yet it works. See above. Since you didn't show any of the supposed "many different errors", I cannot help you further. Good luck.

My bad, instead of just adding the edited code (which gave errors) I copied the entire code of the modified library and it fixed it. I can't thank you enough for this, you are the absolute MVP. Thank you so much!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.