CustomBoard Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new custom board.
public CustomBoard(System.Device.Gpio.GpioDriver gpioDriver, Func<int,System.Device.I2c.I2cBus> i2cBusCreator, Func<System.Device.Spi.SpiConnectionSettings,System.Device.Spi.SpiDevice> spiDeviceCreator, Func<int,System.Device.Pwm.PwmChannel> pwmChannelCreator);
new Iot.Device.Board.CustomBoard : System.Device.Gpio.GpioDriver * Func<int, System.Device.I2c.I2cBus> * Func<System.Device.Spi.SpiConnectionSettings, System.Device.Spi.SpiDevice> * Func<int, System.Device.Pwm.PwmChannel> -> Iot.Device.Board.CustomBoard
Public Sub New (gpioDriver As GpioDriver, i2cBusCreator As Func(Of Integer, I2cBus), spiDeviceCreator As Func(Of SpiConnectionSettings, SpiDevice), pwmChannelCreator As Func(Of Integer, PwmChannel))
Parameters
- gpioDriver
- GpioDriver
GPIO driver to use
- spiDeviceCreator
- Func<SpiConnectionSettings,SpiDevice>
Function to create an SPI device
- pwmChannelCreator
- Func<Int32,PwmChannel>
Function to create a PWM channel