Move from slow JSON to much quicker byte transfer

This commit is contained in:
Robert Marshall 2021-12-22 10:22:37 +00:00
parent abe4353475
commit 1fef7427a5
6 changed files with 64 additions and 68 deletions

View file

@ -21,6 +21,7 @@ public:
void attach(unsigned int pin){
ledcAttachPin(pin, _channel);
}
void writeFraction(float fraction){
auto value = fraction * LED_OUTPUT_PWM_RANGE;
if (_invert)