KRITSADA

microbit neoPixel Rainbow move Examples

Jan 19th, 2018
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let SLED: neopixel.Strip = null
  2. SLED = neopixel.create(DigitalPin.P16, 9, NeoPixelMode.RGB_RGB)
  3. SLED.showRainbow(1, 360)
  4. basic.forever(() => {
  5.     basic.pause(600)
  6.     SLED.rotate(1)
  7.     SLED.show()
  8. })
Advertisement
Add Comment
Please, Sign In to add comment