메소드 | 설명 | |
---|---|---|
ConnectGpio ( int controllerIndex, int pinNumber, GpioPinDriveMode driveMode = GpioPinDriveMode.Input, GpioSharingMode sharingMode = GpioSharingMode.Exclusive ) : Windows.Devices.Gpio.GpioPin |
Connects to a GPIO pin if it exists.
|
|
ConnectI2c ( int controllerIndex, int address, I2cBusSpeed speed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Exclusive ) : Windows.Devices.I2c.I2cDevice |
Connects to an I2C device if it exists.
|
|
ConnectSpi ( int controllerIndex, int chipSelectLine, int frequency, int bits, SpiMode mode, SpiSharingMode sharingMode = SpiSharingMode.Exclusive ) : Windows.Devices.Spi.SpiDevice |
Connects to an SPI device if it exists.
|
|
Initialize ( ) : void |
Configures the LightningProvider when enabled. Not thread safe, must be called in a thread safe context. |
public static ConnectGpio ( int controllerIndex, int pinNumber, GpioPinDriveMode driveMode = GpioPinDriveMode.Input, GpioSharingMode sharingMode = GpioSharingMode.Exclusive ) : Windows.Devices.Gpio.GpioPin | ||
controllerIndex | int | Controller index. |
pinNumber | int | Pin number. |
driveMode | GpioPinDriveMode | Drive mode. |
sharingMode | GpioSharingMode | Sharing mode. |
리턴 | Windows.Devices.Gpio.GpioPin |
public static ConnectI2c ( int controllerIndex, int address, I2cBusSpeed speed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Exclusive ) : Windows.Devices.I2c.I2cDevice | ||
controllerIndex | int | Controller index. |
address | int | Slave address. |
speed | I2cBusSpeed | Bus speed. |
sharingMode | I2cSharingMode | Sharing mode. |
리턴 | Windows.Devices.I2c.I2cDevice |
public static ConnectSpi ( int controllerIndex, int chipSelectLine, int frequency, int bits, SpiMode mode, SpiSharingMode sharingMode = SpiSharingMode.Exclusive ) : Windows.Devices.Spi.SpiDevice | ||
controllerIndex | int | Controller index. |
chipSelectLine | int | Slave Chip Select Line. |
frequency | int | Frequency in Hz. |
bits | int | Data length in bits. |
mode | SpiMode | Communication mode, i.e. clock polarity. |
sharingMode | SpiSharingMode | Sharing mode. |
리턴 | Windows.Devices.Spi.SpiDevice |