mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Add examples for DMA, DutyCycle, DutyCycleEncoder and AddressableLED (#2100)
This commit is contained in:
committed by
Peter Johnson
parent
5891628112
commit
500c43fb84
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user