#include "LoRaWan_APP.h" go crazy the RGB led

Hi , I try in a simple code to turn on / off a color of the RGB onboard led , when i include the “LoRaWan_APP.h” the led go crazy an change of color .
I disable the option in arduino "TOOLS =>LORAWAN_RGB = DISABLE

code:
#include “LoRaWan_APP.h” // when I comment this line , the led work fine
#include “CubeCell_NeoPixel.h”

CubeCell_NeoPixel pixels(1, RGB, NEO_GRB + NEO_KHZ400);

void setup() {
pinMode(Vext,OUTPUT);
digitalWrite(Vext,LOW); //SET POWER
pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
pixels.clear(); // Set all pixel colors to ‘off’
}

void loop() {
pixels.setPixelColor(0, pixels.Color(0, 0, 100));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(100); // Pause before next pass through loop
pixels.clear(); // Set all pixel colors to ‘off’
delay(1000); // Pause before next pass through loop
}

any suggestion to use the led with this library ??
thanks

Try using a different name for your NeoPixel instance. I think you’ll find that the instance created for use within the Heltec LoRaWAN library is called “pixels” so using the same name is bound to be problematic.

I had pretty much the same problem with one of their early [LoRaWAN] releases that used the OLED display [on the WiFi LoRa 32 board]—they defined their instance as “display”, which was the first name the average user, and that included me at the time, would choose for their own instance…

thanks UniquePete !

I tried your idea and the problem persists. I think the library uses this pin due to a bad pin definition.
The led changes to the set color but the library runs in the background some process and sends erratic pulses to the led. I don’t understand this fail, and it’s really ridiculous wasted a lot of time to turning on a led on the board.
any other idea ?

For what it’s worth, I just loaded the above code (there was initially a compilation error, complaining about the duplicate declaration of “pixels”, so I had to change that (as originally suggested, to “myPixels”) and I had to add a myPixels.show() after the myPixels.clear() to get the LED to turn OFF but, apart from that, it was just a cut and paste) onto a CubeCell V2 and it seemed to work just fine, with or without the LoRaWan_APP library included—no unusual behaviour, just what is effectively a flashing LED.

I may not be running the latest CubeCell support libraries, and I am using an updated pins_arduino.h file, but is that the exact code you are trying to run, or is that just an extract?