C# 클래스 CyrusBuilt.MonoPi.Gertboard.GertboardDevice

Provides read/write access to the MCP4802 Analog-to-Digital converter via SPI on the Gertboard. This wraps the Gertboard support found in wiringPi (https://github.com/WiringPi/WiringPi).
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
AnalogRead ( GertboardAdcChannels channel ) : Int32

Reads an analog value from the ADC on the Gertboard.

AnalogWrite ( GertboardAdcChannels channel, Int32 value ) : void

Writes an 8-bit data value to ADC on the Gertboard.

Initialize ( ) : System.Boolean

Initializes SPI communication with the device.

메소드 상세

AnalogRead() 공개 정적인 메소드

Reads an analog value from the ADC on the Gertboard.
/// Not yet initialized. Call before use. ///
public static AnalogRead ( GertboardAdcChannels channel ) : Int32
channel GertboardAdcChannels /// The channel to read from. ///
리턴 System.Int32

AnalogWrite() 공개 정적인 메소드

Writes an 8-bit data value to ADC on the Gertboard.
/// Not yet initialized. Call before use. ///
public static AnalogWrite ( GertboardAdcChannels channel, Int32 value ) : void
channel GertboardAdcChannels /// The channel to write to. ///
value System.Int32 /// The value to write. ///
리턴 void

Initialize() 공개 정적인 메소드

Initializes SPI communication with the device.
public static Initialize ( ) : System.Boolean
리턴 System.Boolean