//================== Example7_6 ====================
#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);
//============== motor A ================
#define pinDirection1 12
#define pinMotor1 13
//============== motor B ================
#define pinDirection2 4
#define pinMotor2 25

void setup() {
  Serial.begin(115200);
  initOled();
  pinMode(pinDirection1, OUTPUT);
  pinMode(pinDirection2, OUTPUT);
  functionsForPrintingAmessage(20,5,"Test Car");
  }
void loop() {
  motors(180,180);
  functionsForPrintingAmessage(15,35," forward  ");
  delay(5000);
  motors(0,0);
  functionsForPrintingAmessage(15,35,"   stop    ");
  delay(1000);
  motors(-180,-180);
  functionsForPrintingAmessage(15,35,"backwards");
  delay(5000);
  motors(0,0);
  functionsForPrintingAmessage(15,35,"  stop     ");
  delay(1000);
}


//=================================================
