Table of Contents

Method GetPortNumber

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

GetPortNumber(int)

Gets the digital port number for the specified pin.

public static int GetPortNumber(int pin)

Parameters

pin int

The pin number for which to retrieve the digital port.

Returns

int

A int identifier for the digital port containing the specified pin.