Closed hathach closed 5 years ago
@pcaddict superb ! thank you very much, I have never used FastLED before, this is very helpful
I'm working on a port now. I did use pcaddict's branch, also with APA102. However, it's not quite as stable as it should be. Esp. needs the ability to set H0H1 for high-speed SPI, and support for boards where the Arduino pin numbers don't match the board pin numbers....
Track progress at https://github.com/FastLED/FastLED/issues/747
Thanks @henrygab , please keep us update and submit PR if it is ready.
Update: FYI, there are three parts to getting FastLED support.
A PR for Part 1 (FastPin) is now submitted for FastLED's maintainer (focalintent) to code review / consider. See https://github.com/FastLED/FastLED/pull/774.
I am moving on to Part 2 (FastSPI), which I already have in mind how to get working.
I am unlikely to complete Part 3 (clockless), but FastLED's maintainer (focalintent) may try to get and validate that one.
superb !!!
An updated PR for Parts 1 and 2 (FastPin and FastSPI) has now been submitted for FastLED's maintainer (focalintent) to code review / consider. See https://github.com/FastLED/FastLED/pull/779.
This works for APA102 (DotStar), as an example.
All that is needed is clockless. Unfortunately, that's beyond my abilities at the moment. If you have the ability, see the comment I added to the above PR, for initial notes on the information I already discovered that may be useful.
For those reaching this item, wondering how to use the nRF52 library with SPI chipsets, even before it's integrated into the official FastLED libraries, here's one method, based generally on https://www.arduino.cc/en/Guide/Libraries#toc5, but using git
instead of downloading a ZIP file.
File->Preferences
Sketchbook location
This example will use a sketchbook location of C:\Users\ExampleUser\Documents\Arduino
… replace with your path when you see this path below.For Windows:
Start->Run
, type cmd.exe
, and press entercd /d c:\Users\ExampleUser\Documents\Arduino
to go to sketchbook folder (replace with your sketchbook path from above)cd /d Libraries
to enter the libraries folderFor Windows, using GUI:
start .
… a file explorer window should open showing the libraries folderIn the cmd.exe window....
git clone https://github.com/henrygab/fastled.git
and press entergit checkout nrfx
and press enter (this will obtain the branch with nrf52 support)That's all it takes.
PR for a first version with support for clockless: https://github.com/FastLED/FastLED/pull/779
Only update to the above instructions, is to change the branch name from nrfx
to nrf52
.
For example, replace line:
git checkout nrfx
with
git checkout nrf52
Works as-is up with strings of clockless LEDs up to 144 LEDs long. Simply modify the line (currently at clockless_arm_nrf52.h line 10
#define FASTLED_NRF52_MAXIMUM_PIXELS_PER_STRING 144
Allocations are done at compile-time, so you'll know if you have enough RAM when you compile.
PR https://github.com/FastLED/FastLED/pull/802 was accepted a few hours ago. Soon afterwards, FastLED revision was updated to version 3.0002.0007, including explicitly listing support for the nordicnrf52.
@hathach I believe this issue can now be resolved. :tada:
Superb!!! Thanks @henrygab, though I have no idea how to use this yet (wil try later). But it is great addition. @ladyada do you happen to know FastLED and/or used it previously on samd 😊😊
it definitely works on SAMD because we added support for our boards a while ago. you can use it with any WS2812-compatible LEDs to test
thanks @henrygab again for the excellent works :)
https://forums.adafruit.com/viewtopic.php?f=57&t=124748
https://github.com/FastLED/FastLED/issues/476