Engee documentation

Arduino-digitalWrite

Setting the voltage level.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-digitalWrite

Description

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

Block Arduino-digitalWrite It is used to set the voltage level.

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

Ports

Input

# IN_1 — logical voltage level
scalar

Details

Logical voltage level:

  • 0 — low (LOW);

  • otherwise, it’s HIGH.

Data types

UInt32

Complex numbers support

No

Parameters

Main group

# Номер канала — pin number to change

Details

The pin to which the voltage is applied.

Default value

13

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