Dual Neopixel Control

Back and forth

Not really. This is not new information.

i was looking for the function definitions.
From adafruit_Neopixel.h :

  static uint8_t    gamma8(uint8_t x) {
    return pgm_read_byte(&_NeoPixelGammaTable[x]); // 0-255 in, 0-255 out
  }

static const uint8_t PROGMEM _NeoPixelGammaTable[256] = {
    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
    0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1,
    1,  1,  1,  1,  2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,
    3,  3,  4,  4,  4,  4,  5,  5,  5,  5,  5,  6,  6,  6,  6,  7,
    7,  7,  8,  8,  8,  9,  9,  9, 10, 10, 10, 11, 11, 11, 12, 12,
   13, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20,
   20, 21, 21, 22, 22, 23, 24, 24, 25, 25, 26, 27, 27, 28, 29, 29,
   30, 31, 31, 32, 33, 34, 34, 35, 36, 37, 38, 38, 39, 40, 41, 42,
   42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
   58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 75,
   76, 77, 78, 80, 81, 82, 84, 85, 86, 88, 89, 90, 92, 93, 94, 96,
   97, 99,100,102,103,105,106,108,109,111,112,114,115,117,119,120,
  122,124,125,127,129,130,132,134,136,137,139,141,143,145,146,148,
  150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,
  182,184,186,188,191,193,195,197,199,202,204,206,209,211,213,215,
  218,220,223,225,227,230,232,235,237,240,242,245,247,250,252,255};

So that explains the gamma8 part.
or at least hmm well, so what does this actually mean.

strip.gamma8(CNT+i * (255 / CNT1))

gamma8 returns an intensity value depending on the input roughly 0-255 in 0-255 out but with a curve.

I had some trouble finding getPixelColorHsv() but from ColorHSV()

  static uint32_t   ColorHSV(uint16_t hue, uint8_t sat=255, uint8_t val=255);

the first argument was the pixel, we had determined that. the 2nd is the HUE so that defines the color shade. Saturation is at a max (and default of 255)
It is the 'value' argument that is being modified for every pixel, and if that is progressively done then that results in movement/animation.
Does that help you ? (and maybe some guy)
personally i never use the HSV so i am probably not the right guy to help with anything other than providing a method for discovery.

I'm still getting the same result.

After researching more, maybe my best bet is to switch this portion of code to the FastLED Library?That might be a little easier right?

Looks like Pacifica is what I'm trying to accomplish after looking at the examples in FastLed I just have to change the colors for each strip.

Is there a way to control multiple strips chained together or do I have to go on separate pins?

https://github.com/FastLED/FastLED/wiki/Multiple-Controller-Examples

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.