EXRAIL

Setting neopixels

Suitable For Level: Propeller Beanie Engineer Hat

The NEOPIXEL macro provides the ability to set neopixels on or off change the colour. either individually or over a range of pixels.

NEOPIXEL([-]vpin, red, green, blue [,count])
  • vpin = pin number of the individual pixel in the range defined by the HAL(NeoPixel…).

  • red = 0..255 intensity of the red channel

  • green = 0..255 intensity of the green channel

  • blue = 0..255 intensity of the blue channel

  • count = number of pixels to set, starting at vpin. Default =1.

Setting pixels on or off (without colour change) can be done with SET/RESET.

Because the pixels obey SET/RESET, the BLINK command can also be used to control blinking a pixel.