Skip to main content

Meadow.Foundation.Switches.ChromaTek.LatchingButton

LatchingButton
StatusStatus badge: working
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Switches.ChromaTek

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​
TypeNameDescription
Meadow.ColorcolorThe color to set

GetColor()​

Gets the color of the target

View Source​
Declaration
public Color GetColor()
Returns​

Meadow.Color

Implements​