Ads1115.VoltageToRaw(ElectricPotential) Method

Definition

Converts voltage to raw data.

public short VoltageToRaw (UnitsNet.ElectricPotential voltage);
member this.VoltageToRaw : UnitsNet.ElectricPotential -> int16
Public Function VoltageToRaw (voltage As ElectricPotential) As Short

Parameters

voltage
UnitsNet.ElectricPotential

Input voltage

Returns

Corresponding raw value, based on the current measuring range

Applies to