#include <Arduino.h>
#include <Wire.h>
#include <U8g2lib.h>
// Initialize OLED Display
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/U8X8_PIN_NONE);
void setup() {
// Serial.begin(115200);
u8g2.begin();
Display_Centered_Lines();
}
void loop() {
}
void Display_Centered_Lines() {
u8g2.firstPage();
do {
// Draw Horizontal Line (2px height) in the center
u8g2.drawBox(0, (64 / 2) - 1, 128, 2);
// Draw Vertical Line (2px width) in the center
u8g2.drawBox((128 / 2) - 1, 0, 2, 64);
} while (u8g2.nextPage());
}