Block:Analog input

From Bendyroad

Read analog values from a pin.


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:


Analog input for reading ADC values.

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
Controller Specify the controller number to which the input is connected. If unsure or using the default, leave this field blank.
Comment To optionally enter a comment.
It does not impact the generated firmware.