neopixel__spark_internet_button (community library)

Summary

Name Value
Name neopixel__spark_internet_button
Version 0.0.5
Installs 1144
License GNU GPLv3
Author Adafruit, Technobly, Gregoryfenton
URL https://github.com/gregoryfenton/sparkcore-neopixel
Repository https://github.com/gregoryfenton/sparkcore-neopixel.git
Download .tar.gz

An Implementation of Adafruit's NeoPixel Library for the Spark Core Spark Internet Button

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.

SparkCore-NeoPixel

A library for manipulating NeoPixel RGB LEDs for the Spark Core. Implementation based on Adafruit's NeoPixel Library. Library currently supports WS2812, WS2812B GRB 800kHz style pixels, strips and sticks! WS2811 RGB 400kHz style pixels, strips and sticks!

Also supports these less common pixels

  • Radio Shack Tri-Color LED Strip with TM1803 controller 400kHz bitstream.
  • TM1829 pixels, many details here.

Components Required

  • A Neopixel digital RGB LED (get at adafruit.com)
  • or a Radio Shack Tri-Color LED Strip (get at radioshack.com)
  • A Spark Shield Shield or breakout board to supply neopixel's with 5V (see store at spark.io)

Example Usage

See this flashable, rainbow example for details, or, in a nutshell:

Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);
void setup() {
strip.begin();
strip.show();
}
void loop() {
// change your pixel colors and call strip.show() again
}

Nuances

  • Make sure get the # of pixels, pin number, type of pixels correct

  • NeoPixels require 5V logic level inputs and the Spark Core only has 3.3V logic level digital outputs. Level shifting from 3.3V to 5V is necessary, 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.

Building locally

If you are building locally, place the files here:

..\core-firmware\inc\neopixel.h
..\core-firmware\src\application.cpp (renamed from extra-examples.cpp)
..\core-firmware\src\neopixel.cpp
..\core-firmware\src\build.mk (optional, if you have your own make file going, just add the neopixel.cpp to it)
  • NeoPixel Guide: https://learn.adafruit.com/adafruit-neopixel-uberguide
  • Quad Level Shifter IC: SN74ACHT125N (Adafruit)
  • Quad Level Shifter IC: SN74HCT125N (Digikey)
  • Quad Level Shifter IC: SN74AHCT125N (Digikey)

Browse Library Files