Class Configuration
Change Configuration
Inherited Members
Namespace: nanoFramework.Hardware.Esp32
Assembly: nanoFramework.Hardware.Esp32.dll
Syntax
public class Configuration
Constructors
Configuration()
Declaration
public Configuration()
Methods
GetFunctionPin(DeviceFunction)
Returns the current pin number used by a device function.
Declaration
public static int GetFunctionPin(DeviceFunction function)
Parameters
Type | Name | Description |
---|---|---|
DeviceFunction | function |
Returns
Type | Description |
---|---|
int | The pin number used by device function. If value is -1 then pins is not assigned. |
SetPinFunction(int, DeviceFunction)
Set the default function for a GPIO pin.
Declaration
public static void SetPinFunction(int pin, DeviceFunction value)
Parameters
Type | Name | Description |
---|---|---|
int | pin | The pin number to set against function. |
DeviceFunction | value | The device function to be assigned the pin. |
Remarks
Allows gpio pins to be assigned a device function. For example setting the I2C1 data pin to use GPIO pin 17.