Struct rainbow_hat_rs::lights::Lights [−][src]
Expand description
Set of lights on the board.
Fields
red: Light
Red light.
green: Light
Green light.
blue: Light
Blue light.
Implementations
Set the state for all the lights.
Arguments
state
- State of the lights: true for on, false for Off.
Set the state for each light.
Arguments
r
- State of the red light: true for on, false for Off.g
- State of the green light: true for on, false for Off.b
- State of the blue light: true for on, false for Off.
Enbles simulation mode.
Auto Trait Implementations
impl !RefUnwindSafe for Lights
impl !UnwindSafe for Lights