#include <FastLED.h>
const CRGBPalette16 _fgPalettes[] = {
HeatColors_p,
LavaColors_p,
OceanColors_p
};
#define NUM_PALETTES (sizeof(_fgPalettes) / sizeof(CRGBPalette16))
const uint8_t _yellowPalettes[] = {
17, // Yellowout
32 // Grintage
};
const u_int8_t *paletteArray = nullptr;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println(NUM_PALETTES);
Serial.println(sizeof(_yellowPalettes) / sizeof(u_int8_t));
paletteArray = _yellowPalettes;
if( paletteArray != nullptr ) {
int numArrayPalettes = (sizeof(&paletteArray) / sizeof(u_int8_t));
Serial.println(numArrayPalettes);
}
}
void loop() {
delay(10); // this speeds up the simulation
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23