⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 battery.java

📁 专业汽车级嵌入式操作系统OSEK的源代码
💻 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 + -