RGBHeadlight
Wrapper for the goBILDA PWM RGB Headlight Module.
The module behaves like a servo, different PWM positions correspond to different colors/patterns.
Example:
val headlight = RGBHeadlight("headlights")
headlight.setColor(RGBHeadlight.Color.RED)
headlight.setBrightness(0.8)Content copied to clipboard
Parameters
name
The name of the servo in the hardware map.
cacheTolerance
Tolerance used by the Caching delegate for position updates; defaults to 0.01.