#include <Servo.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
//#define SCREEN_ADDRESS 0x3C
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
Servo solServo;
Servo sagServo;
int potBaslangic = A0;
short sagServoAciDegisken;
short solServoAciDegisken;
short potExtend;
int aciDegerleri []= {180,0,175,5,170,10,165,15};
int menuDugmesi=2;
short menuDugmesiDurum;
int modDurum=0;
const unsigned char PROGMEM bentimu[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xfc, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0x81,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xfc, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0xff, 0xf8, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xf0,
0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xe0, 0x00, 0x03, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xfc, 0xff, 0xc0, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff,
0x80, 0x00, 0x01, 0xff, 0xff, 0xff, 0xfc, 0x0f, 0xff, 0xfc, 0xff, 0x80, 0x00, 0x00, 0xff, 0xff,
0xff, 0xf8, 0x03, 0xff, 0xfc, 0xff, 0xc0, 0x00, 0x00, 0xff, 0xff, 0xff, 0xf0, 0x01, 0xff, 0xfc,
0xff, 0x80, 0x00, 0x00, 0xff, 0xff, 0xff, 0xe0, 0x00, 0xff, 0xfc, 0xff, 0xc1, 0xe0, 0x00, 0xff,
0xff, 0xff, 0xe0, 0x00, 0x3f, 0xfc, 0xff, 0xc1, 0xf3, 0x00, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f,
0xfc, 0xff, 0xe3, 0xff, 0x80, 0xff, 0xff, 0xff, 0xc1, 0xfe, 0x0f, 0xfc, 0xff, 0xe4, 0x1c, 0x01,
0xff, 0xff, 0xff, 0x9f, 0xff, 0x0f, 0xfc, 0xff, 0xe0, 0x00, 0x01, 0xff, 0xff, 0xff, 0xbf, 0xff,
0x87, 0xfc, 0xff, 0xe4, 0x00, 0x01, 0xff, 0xff, 0xff, 0x3f, 0xff, 0x87, 0xfc, 0xff, 0xf4, 0x0c,
0x01, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xc7, 0xfc, 0xff, 0xff, 0x0c, 0x01, 0xff, 0xff, 0xff, 0x7f,
0xff, 0xc7, 0xfc, 0xff, 0xff, 0xfc, 0x39, 0xff, 0xff, 0xff, 0x7f, 0xf0, 0xc7, 0xfc, 0xff, 0xff,
0xfc, 0x79, 0xff, 0xff, 0xff, 0x07, 0xc3, 0xe7, 0xfc, 0xff, 0xff, 0x9c, 0x33, 0xff, 0xff, 0xff,
0x81, 0x81, 0xcf, 0xfc, 0xff, 0xfb, 0x3c, 0x03, 0xff, 0xff, 0xff, 0xc1, 0xc0, 0xe7, 0xfc, 0xfe,
0x02, 0x00, 0x03, 0xff, 0xff, 0xff, 0xc0, 0xe3, 0xf7, 0xfc, 0xf8, 0x02, 0x00, 0x07, 0xff, 0xff,
0xff, 0xe1, 0xff, 0xef, 0xfc, 0xf0, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xfc,
0xf0, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfb, 0xef, 0xdf, 0xfc, 0xf8, 0x20, 0x40, 0x00, 0x3f,
0xff, 0xff, 0xfc, 0x2f, 0xdf, 0xfc, 0xfc, 0x22, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xf8, 0x1f, 0xdf,
0xfc, 0xfe, 0x02, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xf0, 0x07, 0xbf, 0xfc, 0xe3, 0x82, 0x00, 0x00,
0x7f, 0xff, 0xff, 0xd0, 0x03, 0xbf, 0xfc, 0x81, 0xc3, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xcc, 0x3f,
0x7f, 0xfc, 0xe0, 0x39, 0x80, 0x04, 0x0f, 0xff, 0xff, 0xef, 0x7f, 0x7f, 0xfc, 0xf0, 0x18, 0x00,
0x10, 0x03, 0xff, 0xff, 0xe7, 0xfe, 0xff, 0xfc, 0xf0, 0x0d, 0x3c, 0x00, 0x00, 0xff, 0xff, 0xf3,
0xf9, 0xff, 0xfc, 0xff, 0x84, 0x1f, 0x00, 0x00, 0x7f, 0xff, 0x98, 0x03, 0xff, 0xfc, 0xff, 0xc8,
0x10, 0x00, 0x00, 0x7f, 0xfe, 0x9c, 0x07, 0xff, 0xfc, 0xff, 0xfd, 0x01, 0x00, 0x00, 0x3f, 0xf3,
0x1e, 0x1f, 0xff, 0xfc, 0xff, 0xff, 0x99, 0x00, 0x00, 0x3f, 0x3f, 0x8f, 0xff, 0xff, 0xfc, 0xff,
0xff, 0xf3, 0xc4, 0x00, 0x3c, 0xff, 0xe7, 0xff, 0xff, 0xfc, 0xff, 0xff, 0x73, 0xee, 0x00, 0x1b,
0xff, 0xf1, 0xff, 0xef, 0xfc, 0xff, 0xfe, 0x73, 0xff, 0xe0, 0x17, 0xff, 0xf0, 0xff, 0xff, 0xfc,
0xff, 0xfc, 0xe3, 0xff, 0xe0, 0x1f, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xdc, 0xe7, 0xdf, 0xe0,
0x0f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xdd, 0xe7, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0xff, 0xff,
0xfc, 0xff, 0xd9, 0xeb, 0xdf, 0xc0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xf3, 0xcb, 0xff,
0x80, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xe3, 0xdb, 0xff, 0xc0, 0x1f, 0xff, 0xff, 0xff,
0xff, 0xfc, 0xff, 0xe3, 0xdf, 0xbf, 0xc0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xc7, 0xdf,
0xbf, 0xc0, 0x37, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xc7, 0xdf, 0x3f, 0xd0, 0x33, 0xff, 0xff,
0xff, 0xff, 0xfc, 0xff, 0xcf, 0xfb, 0x7f, 0xe0, 0x3b, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xcf,
0xba, 0x7f, 0xe0, 0x3b, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0x8f, 0xba, 0x7f, 0xc0, 0x3f, 0xff,
0xff, 0xff, 0xff, 0xfc, 0xff, 0x8f, 0xbe, 0xff, 0xc0, 0x3f, 0x7f, 0xff, 0xff, 0xfc, 0x7c, 0xff,
0x43, 0xbc, 0xff, 0xc0, 0x3e, 0xff, 0xff, 0xff, 0xfe, 0xcc, 0xff, 0x43, 0xbd, 0xff, 0x80, 0x7e,
0xff, 0xff, 0xff, 0xff, 0xf8, 0xff, 0x63, 0xfd, 0xff, 0x80, 0x7e, 0x7f, 0xff, 0xff, 0xff, 0xfc
};
const unsigned char bayramhocaresized [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff,
0xff, 0xfe, 0x03, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xf8, 0x01, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xf0,
0x00, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xf0, 0x00, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xf0, 0x00, 0xff,
0xff, 0xfc, 0xff, 0xff, 0xf7, 0x0c, 0x7f, 0xff, 0xfc, 0xff, 0xff, 0xf1, 0x1e, 0x7f, 0xff, 0xfc,
0xff, 0xff, 0xf3, 0x80, 0x7f, 0xff, 0xfc, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xfc, 0xff, 0xff,
0xf0, 0x01, 0x7f, 0xff, 0xfc, 0xff, 0xff, 0xf0, 0x67, 0x7f, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x7f,
0xff, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x26, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xf8, 0x00, 0xff, 0xff,
0xfc, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0xff,
0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x01, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfe,
0x01, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x01, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x01, 0xff,
0xff, 0xfc, 0xff, 0xff, 0xfe, 0x03, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xfc,
0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xfc, 0xff, 0xff,
0xff, 0x87, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,
0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff,
0xfd, 0xff, 0xff, 0xfe, 0x7f, 0xfc, 0xff, 0xfd, 0xff, 0xff, 0xfe, 0x7f, 0xfc, 0xff, 0xfc, 0xff,
0xff, 0xfe, 0x7f, 0xfc, 0xff, 0xfc, 0xff, 0xff, 0xfe, 0x7f, 0xfc, 0xff, 0xfe, 0xff, 0xff, 0xfc,
0x7f, 0xfc, 0xff, 0xfe, 0x7f, 0xff, 0xfc, 0xff, 0xfc, 0xff, 0xfe, 0x03, 0xff, 0xf8, 0x7f, 0xfc,
0xfe, 0x1e, 0x01, 0xff, 0xf0, 0x7f, 0xfc, 0xff, 0x9e, 0x07, 0xcf, 0xe0, 0x7f, 0xfc, 0xf3, 0xfe,
0x04, 0xe7, 0x80, 0x78, 0x3c, 0xe0, 0x7f, 0xf8, 0x36, 0x1f, 0x80, 0x3c, 0xe0, 0x1f, 0xfb, 0x02,
0x00, 0x00, 0x3c, 0xe0, 0x01, 0xf0, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x7c, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x1f, 0xfc, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xfc, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xfc
};
const unsigned char basakhocaarray [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xfe, 0x03,
0xff, 0xff, 0xfe, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xf8, 0x00, 0x7f, 0xff,
0xfe, 0xff, 0xff, 0xf0, 0x0c, 0x3f, 0xff, 0xfe, 0xff, 0xff, 0xe0, 0x1e, 0x3f, 0xff, 0xfe, 0xff,
0xff, 0xe0, 0x3e, 0x1f, 0xff, 0xfe, 0xff, 0xff, 0xc0, 0x3f, 0x0f, 0xff, 0xfe, 0xff, 0xff, 0xc0,
0x3f, 0x0f, 0xff, 0xfe, 0xff, 0xff, 0xc0, 0x39, 0x0f, 0xff, 0xfe, 0xff, 0xff, 0xc0, 0x00, 0x0f,
0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x07, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x10, 0x87, 0xff, 0xfe,
0xff, 0xff, 0x80, 0x3f, 0x87, 0xff, 0xfe, 0xff, 0xff, 0x83, 0xbb, 0x87, 0xff, 0xfe, 0xff, 0xff,
0x87, 0x00, 0x07, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x07, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00,
0x07, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x07, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x07, 0xff,
0xfe, 0xff, 0xff, 0x80, 0x00, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x03, 0xff, 0xfe, 0xff,
0xff, 0x80, 0x00, 0x01, 0xff, 0xfe, 0xff, 0xff, 0x80, 0x00, 0x01, 0xff, 0xfe, 0xff, 0xff, 0x00,
0x00, 0x00, 0xff, 0xfe, 0xff, 0xff, 0x00, 0x00, 0x02, 0x7f, 0xfe, 0xff, 0xff, 0x00, 0x00, 0x03,
0xff, 0xfe, 0xff, 0xfe, 0x00, 0x00, 0x03, 0xff, 0xfe, 0xff, 0xfe, 0x00, 0x00, 0x03, 0xff, 0xfe,
0xff, 0xfe, 0x03, 0x00, 0x03, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0x00, 0x03, 0xff, 0xfe, 0xff, 0xfe,
0x03, 0xc0, 0x03, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0xb0, 0x03, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0x91,
0x03, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0xe3, 0x83, 0xff, 0xfe, 0xff, 0xff, 0x03, 0xe3, 0x83, 0xff,
0xfe, 0xff, 0xff, 0x03, 0xc7, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x03, 0xff, 0x03, 0xff, 0xfe, 0xff,
0xff, 0x03, 0xff, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x03, 0xff, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x03,
0xff, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x03, 0xff, 0x03, 0xff, 0xfe, 0xff, 0xff, 0x03, 0xff, 0x03,
0x7f, 0xfe, 0xff, 0xff, 0x03, 0xff, 0x03, 0xff, 0xfe, 0xff, 0xfc, 0x03, 0xff, 0x03, 0xff, 0xfe,
0xff, 0xfe, 0x03, 0xff, 0x83, 0xff, 0xfe, 0xff, 0xfa, 0x03, 0xff, 0x83, 0xff, 0xfe, 0xff, 0xfe,
0x03, 0xff, 0x83, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0xff, 0x83, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0xff,
0x83, 0xff, 0xfe, 0xff, 0xfe, 0x03, 0xff, 0x83, 0xff, 0xfe, 0xff, 0xfe, 0x07, 0xff, 0x83, 0xff,
0xfe, 0xff, 0xff, 0xff, 0xff, 0x83, 0xff, 0xee, 0xef, 0xff, 0xf1, 0xff, 0xe3, 0xff, 0xee, 0xe3,
0xff, 0xf0, 0x7f, 0xff, 0xfe, 0x0e, 0xe0, 0x00, 0x00, 0xf8, 0xff, 0xc0, 0x0e, 0xe0, 0x00, 0x0f,
0x80, 0x00, 0x00, 0x0e, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0xff, 0xf8, 0x00, 0x00, 0x00,
0x0f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe
};
void setup() {
solServo.attach(6);
sagServo.attach(5);
pinMode(menuDugmesi,INPUT_PULLUP);
Serial.begin(9600);
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
Serial.println(F("EKRAN BASLATILAMADI"));
for(;;);
}
display.clearDisplay();
display.display();
delay(2000);
girisEkrani();
}
void loop() {
potBaslangic = analogRead(A0);
potExtend=map(potBaslangic,0,1023,0,4095);
menuDugmesiDurum=digitalRead(menuDugmesi);
delay(15);
if(menuDugmesiDurum!=HIGH){
if(modDurum==6){
modDurum=0;
}
modDurum=modDurum+1;
Serial.println(modDurum);
}
switch(modDurum){
case 1:
pistModu(aciDegerleri[6],aciDegerleri[7]);
break;
case 2:
sporMod(aciDegerleri[4],aciDegerleri[5]);
break;
case 3:
sokakModu(aciDegerleri[2],aciDegerleri[3]);
break;
case 4:
ecoMod(aciDegerleri[0],aciDegerleri[1]);
break;
case 5:
kisiselMod(potExtend,solServoAciDegisken,sagServoAciDegisken);
}
}
void sporMod(short sporAciSolServo,short sporAciSagServo){
solServo.write(sporAciSolServo);
sagServo.write(sporAciSagServo);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,20);
display.println(F("Spor Mod"));
display.setCursor(0,40);
display.println(F("Kanat Acisi 10 Derece"));
display.display();
delay(50);
}
void ecoMod(short ecoAciSolServo,short ecoAciSagServo){
solServo.write(ecoAciSolServo);
sagServo.write(ecoAciSagServo);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,20);
display.println(F("Eco Mod"));
display.setCursor(0,40);
display.println(F("Kanat Acisi 0 Derece"));
display.display();
delay(50);
}
void pistModu(short pistAciSolServo,short pistAciSagServo){
solServo.write(pistAciSolServo);
sagServo.write(pistAciSagServo);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,20);
display.println(F("Pist Modu"));
display.setCursor(0,40);
display.println(F("Kanat Acisi 15 Derece"));
display.display();
delay(50);
}
void sokakModu(short sokakAciSolServo,short sokakAciSagServo){
solServo.write(sokakAciSolServo);
sagServo.write(sokakAciSagServo);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,20);
display.println(F("Sokak Modu"));
display.setCursor(0,40);
display.println(F("Kanat Acisi 5 Derece"));
display.display();
delay(50);
}
void kisiselMod(short potDegeri,short kisiselModAciSolServo,short kisiselModAciSagServo){
// potDegeri=potExtend;
kisiselModAciSolServo=map(potDegeri,0,4095,180,135);
kisiselModAciSagServo=map(potDegeri,0,4095,0,45);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,20);
display.println(F("Kisisel Mod"));
display.setCursor(0,40);
display.println(F("Kanat Acisi Derece"));
display.setCursor(20,52);
display.println(kisiselModAciSagServo);
display.display();
solServo.write(kisiselModAciSolServo);
sagServo.write(kisiselModAciSagServo);
delay(50);
}
void girisEkrani(){
display.clearDisplay();
display.drawBitmap(21, 0, bentimu, 86, 64, 1);
display.display();
delay(2000);
display.clearDisplay();
display.drawBitmap(37, 0, bayramhocaresized, 54, 58, 1);
display.display();
delay(2000);
display.clearDisplay();
display.drawBitmap(36, 0, basakhocaarray, 55, 64, 1);
display.display();
delay(2000);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(1);
display.setCursor(0,0);
display.println(F("Izmir Bakircay"));
display.display();
delay(1000);
display.println(F("Universitesi"));
display.display();
delay(1000);
display.clearDisplay();
display.println(F("Elektrik & Elektronik Muhendisligi"));
display.display();
delay(1000);
display.clearDisplay();
display.setTextSize(1);
display.setCursor(0,0);
display.println(F("Taner Hus"));
display.setCursor(0,8);
display.println(F("Timucin Ariksoy"));
display.setCursor(0,20);
display.println(F("Bitirme Projesi"));
display.setCursor(0,30);
display.println(F("Kanat Kontrol Sistemi"));
display.display();
delay(1000);
display.clearDisplay();
display.setCursor(0,0);
display.setTextSize(2);
display.setCursor(34,0);
display.println(F("TITAN"));
display.setCursor(4,48);
display.println(F("INDUSTRIES"));
display.display();
delay(1000);
display.clearDisplay();
display.setCursor(0,0);
display.setTextSize(1);
display.println(F("Dr. Ogretim Uyesi"));
display.println(F("Bayram Kose"));
display.println(F("Aralik 2022, Izmir"));
display.display();
delay(1000);
display.clearDisplay();
display.setCursor(0,0);
display.setTextSize(2);
display.println(F("Sevgiler"));
display.println(F("Saygilar"));
display.println(F("Hurmetler"));
display.display();
delay(1000);
display.clearDisplay();
display.setCursor(0,0);
display.setTextSize(1);
display.println(F("Mod"));
display.println(F("Secimi"));
display.println(F("Icin"));
display.println(F("Bir Tusa"));
display.println(F("Basiniz"));
display.display();
delay(1000);
}