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

📄 textdisplay.java

📁 单片机上的java虚拟机 用winavr 编译
💻 JAVA
字号:
package nanovm.nibo.drivers;/** * Gives access to a connected text display. * @author Nils Springob */public class TextDisplay {  /**   * Minimum value for X coordinate   */  public static final int MIN_X = 0;  /**   * Maximum value for X coordinate   */  public static final int MAX_X = 15;  /**   * Minimum value for Y coordinate   */  public static final int MIN_Y = 0;  /**   * Maximum value for Y coordinate   */  public static final int MAX_Y = 1;  public static final int HIDDEN = 0;  public static final int BLOCK = 1;  public static final int BLINKBLOCK = 2;  public static final int LINE = 3;    /**   * Clear the entire display   */  public static native void clear();    /**   * Set (invisible) cursor to given coordinate   * @param x X-coordinate   * @param y Y-coordinate   */  public static native void gotoXY(int x, int y);    /**   * Print text on display   */  public static native void print(String s);    /**   * Set the visibility of the cursor.   * @param mode new cursor mode. Possible values are <code>HIDDEN BLOCK BLINKBLOCK LINE</code>   */  public static native void setCursorMode(int mode);}

⌨️ 快捷键说明

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