C# 클래스 BrickPi.Sensors.EV3TouchSensor

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

공개 메소드들

메소드 설명
EV3TouchSensor ( BrickPortSensor port ) : System

Initialise an EV3 Touch sensor

EV3TouchSensor ( BrickPortSensor port, int timeout ) : System

Initialize an EV3 Touch Sensor

GetSensorName ( ) : string
IsPressed ( ) : bool

Determines whether the touch sensor is pressed.

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

메소드 상세

EV3TouchSensor() 공개 메소드

Initialise an EV3 Touch sensor
public EV3TouchSensor ( BrickPortSensor port ) : System
port BrickPortSensor Sensor port
리턴 System

EV3TouchSensor() 공개 메소드

Initialize an EV3 Touch Sensor
public EV3TouchSensor ( BrickPortSensor port, int timeout ) : System
port BrickPortSensor Sensor port
timeout int Period in millisecond to check sensor value changes
리턴 System

GetSensorName() 공개 메소드

public GetSensorName ( ) : string
리턴 string

IsPressed() 공개 메소드

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

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