-
Notifications
You must be signed in to change notification settings - Fork 31
Analog Pin Configuration
Snap! tab location: Sensing tab.
This command block configures an analog input pin (pins marked with an Arduino 'A' designator).
Enter the pin number without the letter 'A', for example to enter pin A5, just enter 5.
The drop down list on the left side of this block allows you to select whether or not to have data changes reported to the Analog Read block. If enabled is selected, all updates are continuously processed and can be read from Analog Read. If disabled is selected, the Analog Read Block will show the last value received before reporting was disabled and will not be updated unless reporting is re-enabled for the pin.
For analog pins, unlike digital pins, enable/disable is specific to the designated pin and not a group of pins. Enabling or disabling only affects the pin selected and no others.
Debugger Value | Explanation |
---|---|
0 | No Error |
2-1 | The pin number specified is not an integer value |
2-2 | The pin number specified is not a valid analog pin number |
Copyright (C) 2015 -2019, Alan Yorinks, All rights reserved.
- Home
- Before You Install s2aio
- Installing s2aio
- Starting s2aio
- s2aio Programming Blocks
- Examples