Skip to content

sparkfun/SparkFun_OWire_Arduino_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkFun OWire Arduino Library

AnimatedGIFofFlashingLEDs

Have you ever seen those strings of fairy lights, or pre-lit Christmas trees, that change colors with a little remote? Have you ever noticed that they only have two wires? How do they do that? Well it turns out that this is how: Special LEDs! These 4mm LEDs are like a compromise between color cycling LEDs and fully addressable LEDs. While you aren't able to individually address each LED in the chain, you can change the color and mode of all LEDs in the chain. We call these "OWire" LEDs because there's no "signal" wire, just power and ground. In order to change modes you wiggle the power LED in in a 7-bit pattern depending on the mode/color you want. Don't worry, we've written an Arduino library! A single LED will run just fine from a GPIO pin, but if you want to put a lot of LEDs in parallel, you'll want to use a MOSFET to signal the power rail. Check the documentation for an example schematic.

Repository Contents

  • /img - Images for this README document
  • /examples - Example code
  • /src - Related software for the SparkFun Qwiic 6DoF ISM330DHCX breakout board

Documentation

Products that use this Library

  • COM-21209 - 2-Pin "OWire" LED - 4mm Concave

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact technical support on our SparkFun forums.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

About

Arduino Library for driving "0-wire" 2-pin multi-mode LEDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages