#include Adafruit_SH1106G display = Adafruit_SH1106G(128, 64, & Wire, -1); int exampleVariable = 20; int numberCounter = 0; void setup() { display.begin(0x3C); display.setTextColor(SH110X_WHITE); } void loop() { display.clearDisplay(); //reset to a blank screen //display.invertDisplay(true); //remove comment slashes to invert screen display.drawLine(40, 40, 80, 40, SH110X_WHITE); //draws a line display.fillRect(10, 20, 10, 10, SH110X_WHITE); //draws a recrangle display.drawCircle(40, 30, 6, SH110X_WHITE); //draws a circle display.drawPixel(100, 10, SH110X_WHITE); //turn on a single pixel display.setTextSize(1); //change text size display.setCursor(5, 45); //move cursor origin point display.print(exampleVariable); //print the value of a variable which was initialized at the top display.print(" example "); //print text display.print(millis()); //print the number of milliseconds since the start display.print(" "); //print a space display.print(numberCounter); //print the value of a variable numberCounter++; //plus 1 to the variable delay(500); //add a delay for the rest of the code to run display.display(); //disyplay the code }