Move from slow JSON to much quicker byte transfer
This commit is contained in:
parent
abe4353475
commit
1fef7427a5
6 changed files with 64 additions and 68 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue