September 02, 2010
Hello,
In the documentation for "ADC" http://leaflabs.com/docs/maple/adc/ it says the pinMode(pin_num, INPUT_ANALOG) "function is usually called from setup() to configure the pin hardware for analog sampling".
However, the AnalogInOutSerial example sketch does not include any pinMode() statements. I think this sketch is a carry over from the Arduino documentation. If I am correct the Arduino does not require the use the pinMode(pin_num, INPUT_ANALOG) initialization.
When the Maple is programmed what are the subtle ("hidden") consequences if pinMode() is not called before analogRead() is used?
Thanks!
Stephen from NYC
Here is a description of my system:
Maple board: Rev 3 (summer 2010)
Maple IDE: 0.6.0
Processor: Pentium III (1 GHz)
USB ports: 1.1
OS: Windows XP Professional (32-bit)
SP: Service Pack 3
Java type: JDK and JRE
Java version: 1.6.0_20 (as reported by the Control Panel)