Teensy 3.2 with FastLED library doesn't work

marilux

New member
Hi,
I use a Teensy 3.2 with a WS2812B LED ring.
In my Arduino code, I use the FastLed library to drive this ring of LEDs. I need to use this library because I'm pairing this assembly with an LD06 lidar. When the lidar detects an object at a certain distance, the LEDs on the side of the object will light up in a certain colour.

I first tested an example of the FastLed library : blink. It uploaded the code to my teensy but nothing worked on my LED ring...
Then I tested an example of the NeoPixel library : blink. It uploaded the code to my teensy and it worked ! Then I continued coding with this library but after a while, the lidar data started to bug, given that the data retrieved by my lidar goes much faster than the LED display. That's why I have to use the FastLed library.

So, I'm back to the Blink example code from the FastLed library, trying to figure out why it won't work with my Teensy 3.2.

Does anyone have any information about the compatibility of the FastLed library with a Teensy 3.2 ?
 

Attachments

  • Blink.ino
    3.7 KB · Views: 1,441
What version of TeensyDuino is in use?

IIRC: Another recent poster found 1.58 to work when the new 1.59 did not on a T_3.2.
 
Can confirm the observation by @marilux.
Tested a few combinations:
Teensyduino 1.59.0Teensyduino 1.58.2
FastLED 3.6Not workingOK
FastLED 3.5Not workingOK
FastLED 3.4Not workingOK

Using Windows 10, Arduino IDE 2.3.2, Teensy 3.2, Adafruit Neopixel-12 ring.
Also using the same File > Examples > FastLED > Blink.
FastLED 3.4 is part of the Teensyduino 1.58.2 & 1.59.0 package.

Paul
 
Not sure if I'm experiencing a different issue or a repeat of this but thought I would post here...

I'm running this blink test script with some serial output to verify when it's working.

It seems to hang up at the line:
C-like:
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
(when I uncomment this line the script continues to output to serial)

I also get these warnings when compiling, which I don't understand:
Code:
In file included from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms/arm/k20/fastled_arm_k20.h:6,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms.h:19,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/FastLED.h:70,
                 from /Users/billtubbs/led-display-project/blink/blink.ino:5:
/Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms/arm/k20/fastspi_arm_k20.h:40: warning: "MAX" redefined
   40 | #define MAX(A, B) (( (A) > (B) ) ? (A) : (B))
      |
In file included from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/fl/str.h:10,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/crgb.hpp:12,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/pixeltypes.h:11,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/cpixel_ledcontroller.h:10,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/controller.h:7,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/FastLED.h:65,
                 from /Users/billtubbs/led-display-project/blink/blink.ino:5:
/Users/billtubbs/Documents/Arduino/libraries/FastLED/src/fl/math_macros.h:4: note: this is the location of the previous definition
    4 | #define MAX(a,b) ((a)>(b)?(a):(b))
      |
In file included from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms/arm/k20/fastled_arm_k20.h:11,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms.h:19,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/FastLED.h:70,
                 from /Users/billtubbs/led-display-project/blink/blink.ino:5:
/Users/billtubbs/Documents/Arduino/libraries/FastLED/src/platforms/arm/k20/clockless_block_arm_k20.h:17: warning: "MIN" redefined
   17 | #define MIN(X,Y) (((X)<(Y)) ? (X):(Y))
      |
In file included from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/fl/str.h:10,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/crgb.hpp:12,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/pixeltypes.h:11,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/cpixel_ledcontroller.h:10,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/controller.h:7,
                 from /Users/billtubbs/Documents/Arduino/libraries/FastLED/src/FastLED.h:65,
                 from /Users/billtubbs/led-display-project/blink/blink.ino:5:
/Users/billtubbs/Documents/Arduino/libraries/FastLED/src/fl/math_macros.h:8: note: this is the location of the previous definition
    8 | #define MIN(a,b) ((a)<(b)?(a):(b))
      |
Sketch uses 12644 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 4508 bytes (6%) of dynamic memory, leaving 61028 bytes for local variables. Maximum is 65536 bytes.


FastLed: 3.9.14
Teensyloader: 1.59
Arduino IDE: 2.3.4
OS: Mac OS 10.15.7

I'll try downloading version 1.58 and see if that works...
 

Attachments

  • blink.ino
    3.7 KB · Views: 96
Last edited:
Back
Top