| 494 | void FastLEDController::setLEDExternalTemperature(uint8_t channel, uint16_t temp) { channelData[channel].temp = temp; } |
| 495 | |
| 496 | void FastLEDController::setLEDColorValues(uint8_t channel, uint8_t color, uint8_t offset, const uint8_t* values, |
| 497 | size_t len) { |
| 498 | int copyLength = min((int)channelData[channel].ledCount - offset, (int)len); |
| 499 | if (copyLength > 0) { |
| 500 | memcpy(channelData[channel].valuesBuffer[color] + offset, values, copyLength); |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | void FastLEDController::clearLEDColorValues(uint8_t channel) { |
| 505 | for (uint8_t*& buffer : channelData[channel].valuesBuffer) { |
nothing calls this directly
no outgoing calls
no test coverage detected