Engee documentation

Arduino-digitalRead

Reading the status of the digital pin.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-digitalRead

Description

To work with the block, install/update the support package. equipment.

Block Arduino-digitalRead It is used to read the status of a digital pin.

The unit reads high (HIGH — 5 In or 3.3 C) or low (LOW — 0 C) the logical voltage level at the specified pin.

Ports

Output

# OUT_1 — logical voltage level
scalar

Details

A readable logical voltage level.

Data types

Int32

Complex numbers support

No

Parameters

Main group

# Номер канала: — the number of the pin being read

Details

The PIN from which the voltage is read.

Default value

6

Program usage name

m_pin

Tunable

No

Evaluatable

Yes

# Шаг расчёта: — the period for invoking the block

Details

Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to −1.

Default value

-1

Program usage name

sample_time

Tunable

No

Evaluatable

Yes