Table of Contents

Class Configuration

Namespace
nanoFramework.Hardware.Esp32
Assembly
nanoFramework.Hardware.Esp32.dll

Change Configuration

public class Configuration
Inheritance
Configuration
Inherited Members
Extension Methods

Constructors

Configuration()

public Configuration()

Methods

GetFunctionPin(DeviceFunction)

Returns the current pin number used by a device function.

public static int GetFunctionPin(DeviceFunction function)

Parameters

function DeviceFunction

Returns

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.

public static void SetPinFunction(int pin, DeviceFunction value)

Parameters

pin int

The pin number to set against function.

value DeviceFunction

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.