Skip to main content

Meadow.Foundation.Switches.ChromaTek.MomentaryButton

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

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

GetColor()​

Gets the color of the target

View Source​
Declaration
public Color GetColor()
Returns​

Meadow.Color

Implements​