Share via


Battery.ReadVoltage Method

Gets a voltage reading for the battery.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

[MethodImplAttribute]
public static int ReadVoltage ()

Return Value

The battery's voltage, in millivolts.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Battery Class
Battery Members
Microsoft.SPOT.Hardware Namespace