Mercurial > d1workshop
changeset 62:0d02c125b577
Merged in ramsrib/d1workshop/ramsrib/corrected-the-typo-in-the-example-1539559173453 (pull request #7)
Corrected the typo in the example
| author | Radomir Dopieralski <bitbucket@sheep.art.pl> |
|---|---|
| date | Wed, 17 Oct 2018 20:26:27 +0000 |
| parents | 62e121139ed4 (current diff) 6848120275b7 (diff) |
| children | 2f28a5d21b1d 9619c25c5254 |
| files | |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/advanced.rst Fri Aug 31 06:21:09 2018 +0000 +++ b/advanced.rst Wed Oct 17 20:26:27 2018 +0000 @@ -96,9 +96,9 @@ And the code for driving them is not very complex either, because the library for generating the signal is included in Micropython:: - form machine import Pin + from machine import Pin import neopixel - pixels = neopixel.Neopixel(Pin(14, Pin.OUT), 8) + pixels = neopixel.NeoPixel(Pin(14, Pin.OUT), 8) pixels[0] = (0xff, 0x00, 0x00) pixels.write()
