Hi, I have a question about using FastLED library with Teensy. The FastLED web site claims to support hardware SPI with Teensy 3 / 3.1:
https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
I would assume (hope) that this extends to other 3.x boards. I tried checking this on a 3.2 board. I used several forms of the ‘FastLED.addLeds’ method:
I then checked the Pin Control Registers for the SPI data and clock pins. In all cases, the MUX field in these registers was set to 3b001. I believe this is the setting for normal GPIO. The Hardware SPI setting for all of these pins is ALT2 (MUX = 3b010). All this leads me to believe that the FastLED library is using Bit-Bang SPI rather than Hardware SPI on (at least) the Teensy 3.2.
Would appreciate it if someone could check my analysis and / or provide their own experience.
Thanks.
https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
I would assume (hope) that this extends to other 3.x boards. I tried checking this on a 3.2 board. I used several forms of the ‘FastLED.addLeds’ method:
Code:
FastLED.addLeds<DOTSTAR, RGB>(leds, NUM_LEDS);
FastLED.addLeds<DOTSTAR, 11, 13, RGB>(leds, NUM_LEDS);
FastLED.addLeds<DOTSTAR, 7, 14, RGB>(leds, NUM_LEDS);
Would appreciate it if someone could check my analysis and / or provide their own experience.
Thanks.