Method | Description | |
---|---|---|
Dispose ( ) : void |
Disposes manages objects used by this instance of Porrey.Uwp.IoT.Sensors.Spi. After being disposed this instance should not be used.
|
|
Initialize ( ) : System.Threading.Tasks.Task |
Initializes the sensor by establishing a connection on the SPI interface.
|
|
Spi ( Windows.Devices.Spi.SpiConnectionSettings settings ) : System |
Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified SpiConnectionSettings.
|
|
Spi ( int chipSelectLine ) : System |
Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified Chip Select Line (0 or 1).
|
Method | Description | |
---|---|---|
OnDispose ( ) : void |
public Initialize ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public Spi ( Windows.Devices.Spi.SpiConnectionSettings settings ) : System | ||
settings | Windows.Devices.Spi.SpiConnectionSettings | An instance of SpiConnectionSettings that specifies /// the parameters of the SPI connection for the sensor. |
return | System |
public Spi ( int chipSelectLine ) : System | ||
chipSelectLine | int | The Chip Select Line the sensor /// is physically connected to. This value is either 0 or 1 on the /// Raspberry Pi 2. |
return | System |