C# 클래스 BrickPi.Sensors.NXTTouchSensor

상속: INotifyPropertyChanged, ISensor
파일 보기 프로젝트 열기: Ellerbach/BrickPi 1 사용 예제들

공개 메소드들

메소드 설명
GetSensorName ( ) : string
IsPressed ( ) : bool

Determines whether the touch sensor is pressed.

NXTTouchSensor ( BrickPortSensor port ) : System

Initialize a new NXT Touch sensor

NXTTouchSensor ( BrickPortSensor port, int timeout ) : System

Initialize a new NXT Touch sensor

NumberOfModes ( ) : int
ReadAsString ( ) : string

Reads the sensor value as a string.

ReadRaw ( ) : int

Reads the raw sensor value

SelectNextMode ( ) : void
SelectPreviousMode ( ) : void
SelectedMode ( ) : string
UpdateSensor ( object state ) : void

Update the sensor and this will raised an event on the interface

비공개 메소드들

메소드 설명
OnPropertyChanged ( string name ) : void
StopTimerInternal ( ) : void

메소드 상세

GetSensorName() 공개 메소드

public GetSensorName ( ) : string
리턴 string

IsPressed() 공개 메소드

Determines whether the touch sensor is pressed.
public IsPressed ( ) : bool
리턴 bool

NXTTouchSensor() 공개 메소드

Initialize a new NXT Touch sensor
public NXTTouchSensor ( BrickPortSensor port ) : System
port BrickPortSensor Sensor port
리턴 System

NXTTouchSensor() 공개 메소드

Initialize a new NXT Touch sensor
public NXTTouchSensor ( BrickPortSensor port, int timeout ) : System
port BrickPortSensor Sensor port
timeout int Period in millisecond to check sensor value changes
리턴 System

NumberOfModes() 공개 메소드

public NumberOfModes ( ) : int
리턴 int

ReadAsString() 공개 메소드

Reads the sensor value as a string.
public ReadAsString ( ) : string
리턴 string

ReadRaw() 공개 메소드

Reads the raw sensor value
public ReadRaw ( ) : int
리턴 int

SelectNextMode() 공개 메소드

public SelectNextMode ( ) : void
리턴 void

SelectPreviousMode() 공개 메소드

public SelectPreviousMode ( ) : void
리턴 void

SelectedMode() 공개 메소드

public SelectedMode ( ) : string
리턴 string

UpdateSensor() 공개 메소드

Update the sensor and this will raised an event on the interface
public UpdateSensor ( object state ) : void
state object
리턴 void