C# Class GlowPi.GlowSmarts

Inheritance: ICommandServerListener, IProgramController
ファイルを表示 Open project: QuinnDamerell/Glow Class Usage Examples

Public Methods

Method Description
AnimateMasterIntensity ( double intensity, System.TimeSpan animationTime ) : void
GetLed ( int ledNumber ) : WindowsIotLedDriver.AnimatedLed
GetMasterIntensity ( ) : double
IsMasterIntensityAnimating ( ) : bool
IsProgramEnabled ( GlowPrograms program ) : bool
OnCommand ( Command command ) : Command
OnConnect ( ) : void
OnDisconnected ( ) : void
OnFatalError ( ) : void
Run ( ) : void
SetWorkRate ( uint workRateMs ) : void
ToggleProgram ( GlowPrograms program, bool enable ) : void

Private Methods

Method Description
HandelProgramChanges ( ) : void
WorkLoop ( ) : void

Method Details

AnimateMasterIntensity() public method

public AnimateMasterIntensity ( double intensity, System.TimeSpan animationTime ) : void
intensity double
animationTime System.TimeSpan
return void

GetLed() public method

public GetLed ( int ledNumber ) : WindowsIotLedDriver.AnimatedLed
ledNumber int
return WindowsIotLedDriver.AnimatedLed

GetMasterIntensity() public method

public GetMasterIntensity ( ) : double
return double

IsMasterIntensityAnimating() public method

public IsMasterIntensityAnimating ( ) : bool
return bool

IsProgramEnabled() public method

public IsProgramEnabled ( GlowPrograms program ) : bool
program GlowPrograms
return bool

OnCommand() public method

public OnCommand ( Command command ) : Command
command GlowCommon.DataObjects.Command
return GlowCommon.DataObjects.Command

OnConnect() public method

public OnConnect ( ) : void
return void

OnDisconnected() public method

public OnDisconnected ( ) : void
return void

OnFatalError() public method

public OnFatalError ( ) : void
return void

Run() public method

public Run ( ) : void
return void

SetWorkRate() public method

public SetWorkRate ( uint workRateMs ) : void
workRateMs uint
return void

ToggleProgram() public method

public ToggleProgram ( GlowPrograms program, bool enable ) : void
program GlowPrograms
enable bool
return void