FastLED issues with new computer

elemenofi

Member
I have an old project on an intel laptop with 16 WS2812 and everything works fine with my Teensy 3.6. I can control the LEDs with no issue. This tells me that the electronics and the data pin and the code and pretty much everything is correct.

The platformio packages/framework-arduinoteensy/package.json is pointing to https://github.com/PaulStoffregren/cores/ and version 1.147.0 which in itself contains the libraries/FastLED/library.json specifyin version 3.3.0.

I believe platformio framework-arduinoteensy 1.147.0 and FastLED 3.3.0 might be a bit old.. but they work.

I now bought a new computer that is AMD instead of Intel (dont think it should be an issue) and when I clone my repo this time platformio installs newer versions of these two key dependencies, I now have framework-arduinoteensy 1.159.0 which contains in itself the FastLED 3.4.0.

Now for the love of all that is good in the world I have tried everything and I cannot make the FastLED work at all. Whenever I invoke .addLeds the whole thing just crashes. Note that running a simple blink test with the onboard LED works just fine.

I opted to start a new platformio project in this new computer in order to try using my teensy 3.6 and the ws2812 with no other code to bother me and it does not work. If I add a serial log before .addLeds I get that fine in the monitor buit if I add a log after .addLeds that never prints out. Its like FastLED.addLeds crashes.

Any ideas? Any pointers? I already brainstormed with ChatGPT 4.5 and digged around everywhere on the internet.

Any help would be gladly appreciated.

Here is the code of the isolated project in the new computer in which I dont do anything but blink and LED.
#include <Arduino.h>
#include <FastLED.h>
#define DATA_PIN 1
#define NUM_LEDS 16
CRGB leds2[NUM_LEDS];
void setup() {
Serial.begin(115200);
delay(6000); // Power-up safety delay
Serial.println("FastLED test starting...");
FastLED.addLeds<WS2812, DATA_PIN, GBR>(leds2, NUM_LEDS);
FastLED.setBrightness(50);
Serial.println("FastLED initialized");
}
void loop() {
// Turn the first led red for 1 second
leds2[0] = CRGB::Red;
FastLED.show();
delay(1000);

// Set the first led back to black for 1 second
leds2[0] = CRGB::Black;
FastLED.show();
delay(1000);
}
And this is as far as the monitoring gets:
--- Terminal on COM4 | 9600 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
FastLED test starting...
If there are any more details about my system or the project that might help troubleshoot please let me know, I have now spent 6 hours trying to figure this one out and I see no reason for it not to work other than that the versions are newer but I was not expecting breaking changes in teensyduino or fastled.
 
Back
Top