Hello guys, Total noob here. I am using ESP32 with 8X8 RGB WS2812 matrix.

Hello guys,
Total noob here. I am using ESP32 with 8X8 RGB WS2812 matrix. But whenever i am running sample code to light the LEDs, I am getting the following error message:

Arduino: 1.8.5 (Windows 8.1), Board: “ESP32 Dev Module, Disabled, Default, QIO, 80MHz, 4MB (32Mb), 115200, None”

D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:15:0: warning: “BRIGHTNESS” redefined

#define BRIGHTNESS 96

^

D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:9:0: note: this is the location of the previous definition

#define BRIGHTNESS 64

^

In file included from D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:5:0:

C:\Users\Shri\Documents\Arduino\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

pragma message “FastLED version 3.001.008”

                 ^

In file included from C:\Users\Shri\Documents\Arduino\libraries\FastLED/FastLED.h:68:0,

             from D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:5:

C:\Users\Shri\Documents\Arduino\libraries\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

pragma message “No hardware SPI pins defined. All SPI access will default to bitbanged output”

                   ^

In file included from C:\Users\Shri\Documents\Arduino\libraries\FastLED/FastLED.h:51:0,

             from D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:5:

C:\Users\Shri\Documents\Arduino\libraries\FastLED/fastpin.h: In instantiation of ‘class FastPin<32u>’:

C:\Users\Shri\Documents\Arduino\libraries\FastLED/platforms/esp/32/clockless_esp32.h:22:52: required from ‘class ClocklessController<32, 60, 150, 90, (EOrder)66u, 0, false, 5>’

C:\Users\Shri\Documents\Arduino\libraries\FastLED/chipsets.h:468:7: required from ‘class WS2812Controller800Khz<32u, (EOrder)66u>’

C:\Users\Shri\Documents\Arduino\libraries\FastLED/FastLED.h:104:52: required from ‘class WS2812<32u, (EOrder)66u>’

C:\Users\Shri\Documents\Arduino\libraries\FastLED/FastLED.h:298:39: required from ‘static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812; unsigned char DATA_PIN = 32u; EOrder RGB_ORDER = (EOrder)66u]’

D:\Arduino_ESP_Support\sketch_jul30a\sketch_jul30a.ino:261:63: required from here

C:\Users\Shri\Documents\Arduino\libraries\FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified

static_assert(validpin(), “Invalid pin specified”);

exit status 1
Error compiling for board ESP32 Dev Module.

Please help me out if you know how to deal with this error.

@Pranav_Kulkarni You can ignore the pragma warnings from FastLED about the version number and the lack of hardware SPI.

Right now, ESP32 support is mostly in my branch of FastLED, which you can find here:

Hopefully, we will merge it into the main repo soon.

(The first error is just a regular error in your code – remove one of the definitions of “BRIGHTNESS”)