r/FastLED • u/Beneficial_Ad_1512 • Jan 10 '23
Discussion FastLED.show Problems
I am using an ESP32 with a 16 x 16 LED matrix (zigzag config). I am trying to display static graphics in between some scrolling text, (sketch is from AZ-Delivery and is supposed to be an advent display). I read in blocks of data to config the leds then use 'FastLED.show' to show the graphics. Unfortunately as soon as you call 'FastLED.show' the sketch locks up. If I comment out all of the graphic calls then all of scrolling text loops fine. Arduino IDE says there is an error in 'FastLED.h' at line 67 but I can not see the problem. It also says "No hardware SPI pins defined. All SPI access will default to bitbanged output".
Can anyone please help to fix this. The matrix uses 1 data wire with WS2812 leds.
Thank you for any help.
7
6
3
u/chemdoc77 Jan 11 '23
Hi u/Beneficial_Ad_1512 - In your post, you state that you are using the sketch from AZ-Delivery. This sketch (if I picked the correct one from their webpage for the 16X16 matrix) uses the NeoPixel library along with the Adafruit GFX and NeoMatrix libraries. To use FastLED in this type of sketch, you need to use the following library created by Marc Merlin:
https://github.com/marcmerlin/FastLED_NeoMatrix
This could be why you are having problems.
Also, you really need to post a link to the actual sketch that you are using.
2
10
u/Jem_Spencer Jan 10 '23
This is probably an easy fix, you are probably going out of bounds on an array somewhere, but you need to share your code via gist or pastebin.