C# 클래스 CyrusBuilt.MonoPi.Components.Lights.LightBase

Base class for light component abstractions.
상속: ComponentBase, ILight
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Off ( ) : void

Switches the light off.

On ( ) : void

Switches the light on.

보호된 메소드들

메소드 설명
LightBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LightBase class. This is the default constructor.

OnStateChanged ( LightStateChangeEventArgs e ) : void

Raises the state changed event.

메소드 상세

LightBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LightBase class. This is the default constructor.
protected LightBase ( ) : System
리턴 System

Off() 공개 추상적인 메소드

Switches the light off.
public abstract Off ( ) : void
리턴 void

On() 공개 추상적인 메소드

Switches the light on.
public abstract On ( ) : void
리턴 void

OnStateChanged() 보호된 메소드

Raises the state changed event.
protected OnStateChanged ( LightStateChangeEventArgs e ) : void
e LightStateChangeEventArgs /// The event arguments. ///
리턴 void