Skip to content

Instantly share code, notes, and snippets.

@tomasinouk
Created June 14, 2015 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasinouk/5c6c9c7010ab01fc8b9f to your computer and use it in GitHub Desktop.
Save tomasinouk/5c6c9c7010ab01fc8b9f to your computer and use it in GitHub Desktop.
-- control 2 first neopixels via RGB
--ws2812.writergb(2, string.char(100,255,0,255,0,0))
-- control 8 neopixels with same RGB color
-- ws2812.writergb(2, string.char(100,255,0):rep(8))
-- -- control 8 neopixels with same RGB color - turn off
ws2812.writergb(2, string.char(0,0,0):rep(8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment