whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.19k stars 221 forks source link

Wiki https://github.com/whitecatboard/Lua-RTOS-ESP32/wiki/NEOPIXEL-module #230

Closed Mynogs closed 5 years ago

Mynogs commented 5 years ago

Sample: -- Setup a NEOPIXEL bus formed by 6 WS2812B leds, connected to GPIO14 neo = neopixel.setup(neopixel.WS2812B, pio.GPIO14, 6) <-- attache, not setup

-- Set color for pixel 0 (pure red) neo:setPixel(0, 255, 0, 0)

-- Set color for pixel 1 (pure green) neo:setPixel(0, 255, 0, 0) <-- 1 not 0

-- Set color for pixel 2 (pure white) neo:setPixel(0, 255, 255, 255) <-- 2 not 0

All sample use setup, must be attach

jolivepetrus commented 5 years ago

@Mynogs,

I have just updated the wiki:

https://github.com/whitecatboard/Lua-RTOS-ESP32/wiki/NEOPIXEL-module

Can you review it?

Mynogs commented 5 years ago

This is still wrong in all samples: -- Set color for pixel 1 (pure green) neo:setPixel(1, 255, 0, 0) <-- 1 not 0

-- Set color for pixel 2 (pure white) neo:setPixel(2, 255, 255, 255) <-- 2 not 0

Mynogs commented 5 years ago

Wrong button... sorry.

jolivepetrus commented 5 years ago

@Mynogs,

Solved!

Mynogs commented 5 years ago

Yes!