cmd_analog_inCommand to read in analog signal from a connected Arduino boardCalling Sequence
val = cmd_analog_in(h,pin_no)
Parametersh : Board number, reserved for future use. For this version, any number would dopin_no : Analog pin to measure the signalval : Reading in the range of 0-1023 to to indicate the input voltage from 0-5VDescription
Arduino UNO board has 6 analog input ports (A0 to A5), the Arduino Mega board has 16 analog input ports (A0 to A15).
The 10 bits channels convert the analog input from 0 to 5 volts, to a digital value between 0 and 1023.
ExamplesSee alsocmd_analog_in_voltAuthorsBruno JOFRET, Tan C.L.