Skip to content

Serial commands to: Set Neopixels

Serial commands to provide the ability to set neopixels on or off or change the colour either individually or over a range of pixels.

<o «vpin» «count»> <o «vpin» «r» «g» «b» «count»> <o «vpin» «r» «g» «b»> <o «vpin»>


Commands

  • <o «vpin» «count»> = Set multiple neopixels on(vpin>0) or off(vpin<0)
  • `<o «vpin» «r» «g» «b» «count»>= Set multiple neopixels colour
  • <o «vpin» «r» «g» «b»> = Set neopixel colour
  • <o «vpin»> = Set neopixel on(vpin>0) or off(vpin<0)

Parameters

  • vpin: The pin number of the output to be controlled. For Arduino output pins, this is the same as the digital pin number.
  • count: number of pixels to set, starting at vpin. Default = 1
  • r: 0..255 intensity of the red channel
  • g: 0..255 intensity of the green channel
  • b: 0..255 intensity of the blue channel

Response

TODO MEDIUM - Responses


Notes

  • TODO LOW - Notes

Examples

Example Commands

  • TODO LOW - Example - Commands

Example Responses:

  • TODO LOW - Example - Responses