gp2d12

An embedded-hal driver for the GP2D12 infrared distance sensor.
Distance calibration is based on the values in the datasheet.
Examples
use Gp2d12;
// 3300 mV max voltage on the ADC, 12-bit precision
let mut gp2d12 = new;
// measuring 40 cm
assert_eq!;
See the STM32F3Discovery example for a complete example.