ARDUINO MEGA Functions Sensors
From ROBOTC API Guide
Revision as of 02:03, 10 May 2012 by Tfriez
|The Arduino MEGA has 16 analog sensor ports and 53 digital sensor ports.|
|TSensorTypes SensorType[tSensors sensor]|
|(TSensorTypes) The SensorType array is used to specify what type of sensor is connected to a certain port. Most users should not have to use this functionality and should use the Motors and Sensor Setup instead.
|word SensorValue[tSensors sensor]|
|(word) This array value will return and modify the value of the sensor. When a pin is set as an "input" the SensorValue array command will return the value from the sensor attached to that pin. When a pin is set as an "output", the SensorValue array can be written to set the output value of the pin (typically Digital Outs will be set to 0 for Low and 1 for High).