#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
int i;
void setup() {
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3C for 128x64
for (;;);
}
display.clearDisplay(); // Clear the buffer
display.setTextSize(1); // Set text size to 1
display.setTextColor(SSD1306_WHITE); // Set text color to white
display.setCursor(0, 0); // Set the initial cursor position
display.display(); // Display the initial frame
display.clearDisplay(); // Clear the buffer
display.setTextSize(1); // Set text size to 1
display.setTextColor(SSD1306_WHITE); // Set text color to white
display.setCursor(5, 5); // Set the initial cursor position
display.print("|-----");
display.print("")
display.setCursor(40, 5); // Set the initial cursor position
display.print("|-----");
display.display();
}
void loop() {
/* // put your main code here, to run repeatedly:
for(int i = 0; i<=100;i++){
if(i==0){
display.setCursor(0,0);
display.print("|");
}
if()
display.setCursor(0,10);
display.print("0 10");
}*/
}