Table of Contents

Method DigitalPortRead

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

DigitalPortRead(int)

Reads the current state of all the digital pins in the specified port.

public byte DigitalPortRead(int port)

Parameters

port int

The number of the digital port (i.e. collection of 8 pins) to read.

Returns

byte

A byte value where each bit represents the state of one pin in the digital port.