LED light bar revers

Hi,
I have 16 LEDs which are activated one after the other. This also works wonderfully.
But now I want them to be activated in reverse order.
What would I have to change?

for (uint8_t pwmnum = 0; pwmnum < 16; pwmnum++) { 
    for (uint16_t i = 0; i < 4096; i += 8) { 
      station.setPWM(pwmnum, 0, i);
    }
  }
  for (uint8_t pwmnum = 0; pwmnum < 16; pwmnum++) { 
    station.setPWM(16 - pwmnum, 0, 4096 );
  }
for (uint8_t pwmnum = 15; pwmnum >= 0; pwmnum--) { 
1 Like

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