コード例 #1
0
/// <summary>
/// getDistanceVolt(): Returns the distance as a Voltage: ADC Input: 0V -> 5V (or 0V -> 3.3V)
/// </summary>
int DistanceGP2Y0A21YK::getDistanceVolt()
{
	return _mapGP2Y0A21YK_V(getDistanceRaw());
}
コード例 #2
0
/// getDistanceVolt(): Returns the distance as a Voltage: ADC Input: 0V -> 5V (or 0V -> 3.3V)
int AnalogDistanceSensor::getDistanceVolt()
{
  return _mapGP2Y0A21YK_V(getDistanceRaw());
}