NeoPixel.addNeo()

This function allows you to add and customize the LED strip.
NeoPixel.addNeo(neo_pin, count_led)
NeoPixel.addNeo(neo_pin, count_led, brightness)
NeoPixel.addNeo(neo_pin, count_led, brightness, option)
NeoPixel.addNeo(neo_pin, count_led, brightness, option, base)
neo_pin: pin to which the LED strip will be connected. count_led: the number of pixels in the feed. brightness: brightness for the entire tape, set to maximum by default. Further, for each pixel in the tape, you can set your own if you wish. . option: additional settings for LED strip.
Color control parameters: depending on the type of LED strip, 4 or 3 color options can be used.
  • NEO_RGB
  • NEO_RBG
  • NEO_GRB (the default)
  • NEO_GBR
  • NEO_BRG
  • NEO_BGR
  • NEO_WRGB
  • NEO_WRBG
  • NEO_WGRB
  • NEO_WGBR
  • NEO_WBRG
  • NEO_WBGR
  • NEO_RWGB
  • NEO_RWBG
  • NEO_RGWB
  • NEO_RGBW
  • NEO_RBWG
  • NEO_RBGW
  • NEO_GWRB
  • NEO_GWBR
  • NEO_GRWB
  • NEO_GRBW
  • NEO_GBWR
  • NEO_GBRW
  • NEO_BWRG
  • NEO_BWGR
  • NEO_BRWG
  • NEO_BRGW
  • NEO_BGWR
  • NEO_BGRW
Parameter that controls the frequency of work with the LED strip.
  • NEO_KHZ800 (the default)
  • NEO_KHZ400
base: specifies which peripheral to use.
  • ZunoNeoBaseUsart0
  • ZunoNeoBaseUsart1 (the default)
  • ZunoNeoBaseUsart2
  • ZunoNeoBaseTimer0
  • ZunoNeoBaseTimer1
  • ZunoNeoBaseWTimer0

the result of the function - if not ZunoErrorOk then it means an error, for example, an error may occur when there is not enough memory The amount of memory used depends on the color mode and on the peripherals used. You can read more about memory here: malloc()