/* Auto-increment set multiple channels at once with an array of 12bit values */ void PCA9685::PWM8(uint8_t start, uint8_t numch, uint8_t* values) { uint16_t newvals [numch]; memset(newvals,0,numch*2); for(int ch = 0; ch < numch; ch++) { newvals[ch] = CIELPWM(values[ch]); } PWM(start, numch, newvals); }
byte BAMClass::linearize(byte value) { return CIELPWM(value); }
/** * Single channel 8bit PWM only. Slow in loop */ void PCA9685::PWM8(uint8_t channel, uint8_t value) { PWM(channel, CIELPWM(value)); }
/* Set multiple channels to the same 8bit value */ void PCA9685::PWM8Same(uint8_t start, uint8_t numch, uint8_t value) { PWMSame(start, numch, CIELPWM(value)); }