#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SH110X.h>
/* Uncomment the initialize the I2C address , uncomment only one, If you get a totally blank screen try the other*/
#define i2c_Address 0x3c //initialize with the I2C addr 0x3C Typically eBay OLED's
//#define i2c_Address 0x3d //initialize with the I2C addr 0x3D Typically Adafruit OLED's
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define TEXT_COLOR SH110X_WHITE
#define OLED_RESET -1 // QT-PY / XIAO
Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup(){
// default message
Serial.begin(9600);
display.begin();
// display.println("Display Working Properly");
display.clearDisplay();
display.setTextColor(SH110X_BLACK, SH110X_WHITE); // 'inverted' text
// display.println(3.141592);
display.setTextSize(2);
display.setTextColor(TEXT_COLOR);
// display.print("0x"); display.println(0xDEADBEEF, HEX);
display.println("Display Working Properly");
display.display();
delay(2000);
display.clearDisplay();
}
void loop(){
}