public void DisplayOLED(String msg) { display.init(); display.clearDisplay(); display.setNormalDisplay(); display.setPageMode(); display.setTextXY(0, 0); display.putString(msg); }
public void HelloWord() { oled.init(); //initialze SEEED OLED display oled.clearDisplay(); //clear the screen and set start position to top left corner oled.setNormalDisplay(); //Set display to normal mode (i.e non-inverse mode) oled.setPageMode(); //Set addressing mode to Page Mode oled.setTextXY(0, 0); //Set the cursor to Xth Page, Yth Column oled.putString("Hello World!"); //Print the String }