//================== Example7_1 ====================
#include <ESP32Servo.h>  
Servo myservo;  
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SH110X.h>
#define i2c_Address 0x3c 
#define SCREEN_WIDTH 128 
#define SCREEN_HEIGHT 64 
#define OLED_RESET -1   
Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

void setup() {
  initOled();
  myservo.attach(18); 
  functionsForPrintingAmessage(38, 10, "Servo");
}

void loop() {
    myservo.write(0); 
    functionsForPrintingData(50, 40, 0);          
    delay(2000);                      
    myservo.write(90);
    functionsForPrintingData(45, 40, 90);              
    delay(2000);
    myservo.write(180);  
    functionsForPrintingData(45, 40, 180);             
    delay(2000);
    myservo.write(90);
    functionsForPrintingData(45, 40, 90);                
    delay(2000);
}
//=================================================