lcd.java

来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 44 行

JAVA
44
字号
package lejos.nxt;/** * LCD routines. */public class LCD{  private LCD()  {  }  /**   * Display a string on the LCD at specified x,y co-ordinate.   */  public static native void drawString(String str, int x, int y);  /**   * Display an int on the LCD at specified x,y co-ordinate.   */  public static native void drawInt(int i, int x, int y);  /**   * Display an in on the LCD at x,y with leading spaces to occupy at least the number   * of characters specified by the places parameter.   */  public static native void drawInt(int i, int places, int x, int y);  /**   * Update the display.   */  public static native void refresh();    /**   * Clear the display.   */  public static native void clear();    /**   * Write graphics from a Java buffer to the display.   */  public static native void setDisplay(int[] buff);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?