Language
Edit

CustomBoard Constructor

Definition

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

i2cBusCreator
Func<Int32,I2cBus>

Function to create an I2C bus instance

spiDeviceCreator
Func<SpiConnectionSettings,SpiDevice>

Function to create an SPI device

pwmChannelCreator
Func<Int32,PwmChannel>

Function to create a PWM channel

Applies to