Skip to content

Commit 9e2f8c7

Browse files
authored
Merge pull request #14 from Granjow/feature/granjow/docs
Extend readme and add note about show()
2 parents 99ce27f + 06d8013 commit 9e2f8c7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
SimpleNeoPixelDemo
2-
==================
1+
# SimpleNeoPixelDemo
32

4-
A demonstration showing how easy it can be to drive WS2812 NeoPixels
3+
A demonstration showing how easy it can be to drive WS2812 NeoPixels.
4+
5+
The code sends bits and bytes directly to the LED strip without allocating memory for them,
6+
which allows to **control hundreds of pixels** with e.g. a small ATtiny85.
7+
The [Adafruit NeoPixel](https://github.com/adafruit/Adafruit_NeoPixel) library allocates 4 bytes
8+
per LED, and an ATtiny85 can only control a bit more than 50 pixels.
59

610
More info at:
7-
http://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/
11+
[NeoPixels Revealed: How to (not need to) generate precisely timed signals](http://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/)

SimpleNeopixelDemo/SimpleNeopixelDemo.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#define T0H 400 // Width of a 0 bit in ns
3636
#define T0L 900 // Width of a 0 bit in ns
3737

38+
// The reset gap can be 6000 ns, but depending on the LED strip it may have to be increased
39+
// to values like 600000 ns. If it is too small, the pixels will show nothing most of the time.
3840
#define RES 6000 // Width of the low gap between bits to cause a frame to latch
3941

4042
// Here are some convience defines for using nanoseconds specs to generate actual CPU delays

0 commit comments

Comments
 (0)