Arduino-digitalRead
Reading the status of the digital pin.
blockType: CFunction
|
Path in the library:
|
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 |
|
| 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 |
|
| Program usage name |
|
| 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 |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
