Meadow.Foundation.Switches.ChromaTek.MomentaryButton
| MomentaryButton | |
|---|---|
| Status | |
| Source code | GitHub |
| NuGet package |
API Reference
Class MomentaryButton
Represents a momentary push button with a WS2812 color LED
Assembly: Switches.ChromaTek.dll
View Source
Declaration
public class MomentaryButton : PushButton, IButton, IDisposable, IChromaTekButton, IColorable, ISensor<bool>, ISensor
Inheritance: System.Object -> Meadow.Foundation.Sensors.Buttons.PushButtonBase -> Meadow.Foundation.Sensors.Buttons.PushButton
Implements:
Meadow.Peripherals.Sensors.Buttons.IButton, System.IDisposable, 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.Sensors.Buttons.IButtonSystem.IDisposable- Meadow.Foundation.Switches.ChromaTek.IChromaTekButton
Meadow.Hardware.IColorableMeadow.Peripherals.Sensors.ISensor<System.Boolean>Meadow.Peripherals.Sensors.ISensor