APA102 Broken on Teensy 4.1

niteris

Member
Hi there, I posted this previous bug report.
https://forum.pjrc.com/threads/68908-SK9822-LEDS-broken-on-Teensy-4-1

Now I find that 4.1 has a big problem with APA102 on platformio with the latest teensy libs installed. Like the previous forum post, the only resolution was to downgrade my unit to the 3.5 series (3.6 is out of stock) and reflash.

I am using around 480 APA102 leds.

See video

Code:
platformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = teensy35

[env]
; Shared environment
platform = teensy@4.14.0 ; latest as of 12/1/2021, https://github.com/platformio/platform-teensy
framework = arduino
upload_protocol = teensy-cli
lib_deps =
  FastLED@3.5.0
  SPI
  ;https://github.com/PaulStoffregen/FastLED#0ea8c7c2ff805a914ff5dbc25f7d12183e690c3c
  ;TeensyThreads@1.0.-)
; Don't use *_LTO as it has a bunch of problems for both platforms.
build_flags =
  -D TEENSY_OPT_FASTER
  ;-D USB_MIDI_SERIAL
  -D FASTLED_USE_GLOBAL_BRIGHTNESS=1
  -D SD_FAT_TYPE=3  ; Automatic selection, should be default!
src_build_flags = 
  -Wall
  -Werror
  -Wno-sign-compare
  
[env:teensy35]
board = teensy35

[env:teensy36]
board = teensy36

[env:teensy41]
board = teensy41
 
Back
Top