Meadow.Foundation.Switches.ChromaTek.LatchingButton
| LatchingButton | |
|---|---|
| Status | |
| Source code | GitHub |
| NuGet package |
API Reference
Class LatchingButton
Represents a latching push button with a WS2812 color LED
Assembly: Switches.ChromaTek.dll
View Source
Declaration
public class LatchingButton : SpstSwitch, ISwitch, IChromaTekButton, IColorable, ISensor<bool>, ISensor
Inheritance: System.Object -> Meadow.Foundation.Sensors.Switches.SpstSwitch
Implements:
Meadow.Peripherals.Switches.ISwitch, Meadow.Foundation.Switches.ChromaTek.IChromaTekButton, Meadow.Hardware.IColorable, Meadow.Peripherals.Sensors.ISensor<System.Boolean>, Meadow.Peripherals.Sensors.ISensor
Methods
SetColor(Color)
Sets the color of the target
View Source
Declaration
public void SetColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Color | color | The color to set |
GetColor()
Gets the color of the target
View Source
Declaration
public Color GetColor()
Returns
Meadow.Color
Implements
Meadow.Peripherals.Switches.ISwitch- Meadow.Foundation.Switches.ChromaTek.IChromaTekButton
Meadow.Hardware.IColorableMeadow.Peripherals.Sensors.ISensor<System.Boolean>Meadow.Peripherals.Sensors.ISensor