Arduino-analogRead
Reading the analog pin data.
blockType: CFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block Arduino-analogRead It is used to read the analog pin data, converting it to a digital value with bit depth 10 bit (by default).
Ports
Output
#
OUT_1
—
the digital value of the pin voltage
scalar
Details
The value of the voltage from the transmitted pin, the value from 0 before 1024.
| 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 from which the block will be called
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 |
