dotstar (community library)
Summary
Name | Value |
---|---|
Name | dotstar |
Version | 1.0.1 |
Installs | |
License | GNU GPLv3 |
Author | Adafruit, Technobly |
URL | https://github.com/technobly/Particle-DotStar |
Repository | https://github.com/technobly/Particle-DotStar.git |
Download | .tar.gz |
All Versions | 1.0.1, 1.0.0, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1 |
An Implementation of Adafruit's DotStar Library for Particle devices
Example Build Testing
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
Library Read Me
This content is provided by the library maintainer and has not been validated or approved.
Particle-DotStar
A library for manipulating DotStar RGB LEDs for the Spark Core, Particle Photon, P1, Electron, Photon2/P2 and RedBear Duo.
Implementation based on Adafruit's DotStar Library.
DotStar LED's are APA102: Datasheet
Components Required
- A DotStar digital RGB LED (get at adafruit.com)
- A Particle Shield Shield or breakout board to supply DotStars with 5V (see store at particle.io)
Example Usage
Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN);
void setup() {
strip.begin();
strip.show();
}
void loop() {
// change your pixel colors and call strip.show() again
}
Nuances
Make sure get the # of pixels, clock and data pin numbers (SW SPI can be any pins, HW SPI only uses the pins defined for the SPI peripheral on your device)
DotStars require 5V logic level inputs and Particle devices only have 3.3V logic level digital outputs. You may find level shifting from 3.3V to 5V necessary if your LED strips are not updating properly. The Spark Shield Shield has the TXB0108PWR 3.3V to 5V level shifter built in (but has been known to oscillate at 50MHz with wire length longer than 6"), alternatively you can wire up your own with a SN74HCT245N, or SN74HCT125N. These are rock solid.
Useful Links
- DotStar Guide: https://learn.adafruit.com/adafruit-dotstar-leds
- Quad Level Shifter IC: SN74ACHT125N (Adafruit)
- Quad Level Shifter IC: SN74HCT125N (Digikey)
- Quad Level Shifter IC: SN74AHCT125N (Digikey)
Browse Library Files