📄 battery.java
字号:
/** * NXT access classes. */package lejos.nxt;/** * Provides access to Battery. */public class Battery{ private Battery() { } /** * Returns the battery voltage in millivolts. * * @return Battery voltage in mV. */ public static native int getVoltageMilliVolt(); /** * Returns the battery voltage in volts. * * @return Battery voltage in Volt. */ public static float getVoltage() { return (float)(Battery.getVoltageMilliVolt() * 0.001); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -