@@ -142,7 +142,13 @@ uint32_t tft_spi_speed;
142
142
#define FASTLED_ALLOW_INTERRUPTS 1
143
143
// Newer Samguyver ESP32 FastLED has a new I2S implementation that can be
144
144
// better (or worse) than then default RMT which only supports 8 channels.
145
- #define FASTLED_ESP32_I2S
145
+ // I'm getting brightness issues on LED strips with I2S when outputting to a matrix too
146
+ //#define FASTLED_ESP32_I2S
147
+
148
+ // https://github.com/FastLED/FastLED/blob/master/src/platforms/esp/32/clockless_rmt_esp32.h
149
+ // Trying random options to see if they help with my dual output setup on ESP32
150
+ #define FASTLED_RMT_MAX_CHANNELS 4
151
+ #define FASTLED_ESP32_FLASH_LOCK 1
146
152
#pragma message "Please use https://github.com/samguyer/FastLED.git if stock FastLED is unstable with ESP32"
147
153
#endif
148
154
#include <FastLED.h>
@@ -306,6 +312,8 @@ uint32_t tft_spi_speed;
306
312
#include <FastLED_NeoMatrix.h>
307
313
#define FASTLED_NEOMATRIX
308
314
315
+ #define NUM_LEDS_PER_STRIP 256
316
+
309
317
uint8_t matrix_brightness = 64 ;
310
318
// Used by LEDMatrix
311
319
const uint16_t MATRIX_TILE_WIDTH = 8 ; // width of EACH NEOPIXEL MATRIX (not total display)
@@ -1209,7 +1217,9 @@ void matrix_setup(bool initserial=true, int reservemem = 40000) {
1209
1217
#ifdef ESP8266
1210
1218
FastLED .addLeds < WS2811_PORTA ,3 > (matrixleds , NUMMATRIX /MATRIX_TILE_H ).setCorrection (TypicalLEDStrip );
1211
1219
#else
1212
- FastLED .addLeds < WS2811_PORTD ,3 > (matrixleds , NUMMATRIX /MATRIX_TILE_H ).setCorrection (TypicalLEDStrip );
1220
+ FastLED .addLeds < WS2812B ,14 , GRB > (matrixleds ,0 * NUM_LEDS_PER_STRIP , NUM_LEDS_PER_STRIP ).setCorrection (0x333333 );
1221
+ FastLED .addLeds < WS2812B ,12 , GRB > (matrixleds ,1 * NUM_LEDS_PER_STRIP , NUM_LEDS_PER_STRIP ).setCorrection (0x333333 );
1222
+ FastLED .addLeds < WS2812B ,15 , GRB > (matrixleds ,2 * NUM_LEDS_PER_STRIP , NUM_LEDS_PER_STRIP ).setCorrection (0x333333 );
1213
1223
#endif
1214
1224
Serial .print ("Neomatrix parallel output, total LEDs: " );
1215
1225
Serial .println (NUMMATRIX );
0 commit comments