Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 25 of 25

Thread: Non-Blocking WS2812 LED Library and Teensy 4.0

Threaded View

  1. #1
    Junior Member JupiterMoll's Avatar
    Join Date
    Nov 2019
    Location
    Berlin
    Posts
    12

    Non-Blocking WS2812 LED Library and Teensy 4.0

    Hallo,

    I want to use Teensy 4.0 with the Non-Blocking WS2812 LED Library that doesn’t interfere with interrupts in combination with the Audio Library.
    On compiling i got this Error Message:

    Code:
    Arduino: 1.8.9 (Linux), TD: 1.48, Board: "Teensy 4.0, Serial, 600 MHz, Faster, US English"
    
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp: In member function 'bool WS2812Serial::begin()':
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:29:2: error: 'KINETISK_UART_t' was not declared in this scope
      KINETISK_UART_t *uart;
      ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:29:19: error: 'uart' was not declared in this scope
      KINETISK_UART_t *uart;
                       ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:136:13: error: 'UART_C2_TE' was not declared in this scope
      uart->C2 = UART_C2_TE | UART_C2_TIE;
                 ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:136:26: error: 'UART_C2_TIE' was not declared in this scope
      uart->C2 = UART_C2_TE | UART_C2_TIE;
                              ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:137:13: error: 'UART_C3_TXINV' was not declared in this scope
    Multiple libraries were found for "WS2812Serial.h"
     Used: /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial
     Not used: /home/alphi/Arduino/libraries/WS2812Serial-master
      uart->C3 = UART_C3_TXINV;
                 ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:138:13: error: 'UART_C5_TDMAS' was not declared in this scope
      uart->C5 = UART_C5_TDMAS;
                 ^
    /home/alphi/Downloads/arduino-1.8.9-linux64/arduino-1.8.9/hardware/teensy/avr/libraries/WS2812Serial/WS2812Serial.cpp:28:11: warning: unused variable 'divisor' [-Wunused-variable]
      uint32_t divisor, portconfig, hwtrigger;
               ^
    Error compiling for board Teensy 4.0.

    Is it possible that Non-Blocking WS2812 LED Library is not compatible with Teensy 4.0 ???
    I"m asking because i want to use WS2812 Led in combination with the Audio Libray so they don't interfere with interrupts.

    Thx.
    Last edited by JupiterMoll; 11-20-2019 at 12:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •