GP2D12

If is wanted to use a device GP2D12 of the Sharp (sensor of distance to infrared) In this form it is possible to point out on what analogical pin is connected. Through the command GP2in is had back the value in centimeters of the measured distance.
The usable quantity of the sensors is tied up to the presence of the shaped analogical channels.
 Commands: GP2in

GP2D12 setup:

1. Configuration of the analogical ports destined to the sensory GP2D12s
2. Enable/Disable of the peripheral one