I have been using the SD card playback of OPC files on my DotStar pixels and love it. I based my setup on the tutorial below.
I would now like to implement the same functionality using FastLED to give me the option of using different pixel types.
I was hoping it would be simple to modify the code but it is a little out of my depth.
Any pointers on how to get this working?
Thanks.
Phil
marmil
(Marc Miller)
June 5, 2017, 4:21pm
2
Unfortunately that link is broken.
I updated the post with the correct link.
Thanks
marmil
(Marc Miller)
June 15, 2017, 8:53pm
4
Is this the right file to look at?
// SD card Open Pixel Control widget...kindasorta a little bit like
// Fadecandy, but self-contained reading from SD and using a single long
// strand of DotStar LEDs instead of 8-way NeoPixels. This is the OPC
// 'server' side -- the OPC 'client' application, which actually renders
// the animation, runs on a regular computer running the Processing
// language (www.processing.org).
// Requires Adafruit Feather M0 Adalogger: www.adafruit.com/products/2796
// Plus a length of DotStar LEDs (strip, matrix, etc.) and a power source.
//#define Serial SerialUSB // Enable if using Arduino Zero 'Native USB' port
// Scroll down to 'CONFIG & GLOBALS' section for further settings.
#include <SPI.h>
#include <SD.h>
#include <Adafruit_ZeroDMA.h>
#include "utility/dma.h"
#include "wiring_private.h" // pinPeripheral() function
// CONFIG & GLOBALS --------------------------------------------------------
This file has been truncated. show original
It’s been years since I used the Adafruit library. Remind me again where in the code the color data is being written/sent to the pixels?
Thanks Marc, that is the correct code for the arduino to read the OPC file from an SD card. To generate the OPC files there is a Processing sketch linked in the original article.
marmil
(Marc Miller)
June 16, 2017, 6:11am
6
@Phil_Spitler I had another look and ready through it again, but this code/library is a bit above my understanding too. Looks quite interesting though.