Add examples for DMA, DutyCycle, DutyCycleEncoder and AddressableLED (#2100)

This commit is contained in:
Thad House
2019-11-18 22:12:17 -08:00
committed by Peter Johnson
parent 5891628112
commit 500c43fb84
14 changed files with 538 additions and 0 deletions

View File

@@ -33,6 +33,15 @@ class AddressableLED : public ErrorBase {
b = _b;
padding = 0;
}
/**
* A helper method to set all values of the LED.
*/
void SetLED(int r, int g, int b) {
this->r = r;
this->g = g;
this->b = b;
}
};
/**