Analog input

Properties

Property Description

Disabled

To disable or enable this block.

Name

The name of this block.

Analog pin

Pin number.
Specify as: <number>. For example: 5

Comment

To optionally enter a comment.
It does not impact the generated firmware.

Read ADC values from a pin.

Applications:

Example with a potentiometer:

  • with the 'name': 'pot1'

  • connected to 'analog pin' '1' (or any other pin you chose)

Digital values will be returned in the variable 'pot1' and can be used: