simple code doesn’t work on AB-01 V2 (v2.2 on PCB - version with etched label on cap) - onboard LED just keeps in off state:
#include "LoRaWan_APP.h"
#ifndef LoraWan_RGB #line 3
#define LoraWan_RGB 1 #line 4
#endif #line 5
void setup()
{
}
void loop() {
turnOnRGB(0x500000,100);
delay(1000);
turnOffRGB();
delay(1000);
}
but it works on AB-01 V1.2! moreover - it works even if I set LoraWan_RGB 0
or even if I comment lines 3,4 and 5.
it also works if I change first line to #include "LoRa_APP.h"
this code has been checked for both board version with Arduino IDE ( Heltec CubeCell (ASR650X) Arduino Support V1.5.0)
and PlatformIO ( latest platform - Heltec CubeCell v 1.1.0 which the same release V1.6.0 - https://github.com/HelTecAutomation/CubeCell-Arduino/releases/tag/V1.6.0)
but for example, this code - works on both boards with both IDE:
#include "CubeCell_NeoPixel.h"
CubeCell_NeoPixel pixels(1, RGB, NEO_GRB + NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
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(255, 0, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(500); // Pause before next pass through loop
pixels.setPixelColor(0, pixels.Color(0, 0, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(500); // Pause before next pass through loop
}
I dont understand - why it is?
second code just pretty the same code which is executed if I include LoRaWan_APP.h and run turnOnRGB