Table of Contents

Method DigitalRead

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

DigitalRead(int)

Reads the current state of the specified digital input pin.

public bool DigitalRead(int pin)

Parameters

pin int

The number of the digital pin to read.

Returns

bool

true if the pin is HIGH; false if the pin is LOW.