Mercurial > d1workshop
changeset 15:b400bbdb5bac
Fix neopixel
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sat, 11 Jun 2016 23:32:14 +0200 |
| parents | b5ff0977b104 |
| children | b0730fbb7a4a |
| files | advanced.rst |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/advanced.rst Sat Jun 11 23:03:03 2016 +0200 +++ b/advanced.rst Sat Jun 11 23:32:14 2016 +0200 @@ -69,8 +69,9 @@ for generating the signal is included in Micropython:: import neopixel - pixels = neopixel.Neopixel(Pin(14, Pin.OUT)) + pixels = neopixel.Neopixel(Pin(14, Pin.OUT), 8) pixels[0] = (0xff, 0x00, 0x00) pixels.write() -You can create all sorts of animations, rainbows and pretty effects with those. +Where ``8`` is the number of LEDs in a chain. You can create all sorts of +animations, rainbows and pretty effects with those.
