Skip to content

Alan-NTHU/DMApa102

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DMApa102

Will need a Teensy (with DMA) and following library:

DMASPI: https://github.com/crteensy/DmaSpi

FastLED: https://github.com/FastLED/FastLED

Using DMASPI with FastLED to push APA102 LEDs. Possible to combine with FastLED existed examples, but may need some works. Wiring: pin 11 as Dataout - to apa102 Din, pin 13 as Clock - to apa102 Clkin, As 11,13 are the common SPI port pins used, other pins that don't used SPI will not work with DMASPI.

the DMAPA102_hue example shows how the function of DMAshow and using elaspedMicros to make the framing stable. if frame per second is more than 60, it is probably not very pleasant to human eyes while static.

the DMAPA102_microsearned example shows the time blocked in microseconds, compared to normal SPI (FastLED), you can change the SPIsettings clock to see differences. notice that with DMASPI you will still need to wait the SPI transfer to complete to show next frame, but you can do other different things while transfering.

Credits.
National Tsing Hua University_Glow Performance Club (NTHU_GPC): https://www.facebook.com/nthugpc/

Panda'Spectrum: https://www.facebook.com/PandaSpectrum/

2018/JUL/19

About

Using DMASPI with FastLED to push APA102 LEDs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages