#define LCD;
#include <Keypad.h>
//#include <Servo.h>
#include <Wire.h>
#ifdef LCD
#include <LiquidCrystal_I2C.h>
#elif defined(OLED)
#include <Adafruit_SSD1306.h>
#include <SPI.h>
#endif
#include <Wire.h>
#ifdef LCD
//Servo myservo;
int pos = 0; // variable to store the servo position
LiquidCrystal_I2C lcd(0x27, 16, 2);
#include <LiquidCrystal_I2C.h>
#elif defined(OLED)
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
// The pins for I2C are defined by the Wire-library.
// On an arduino UNO: A4(SDA), A5(SCL)
// On an arduino MEGA 2560: 20(SDA), 21(SCL)
// On an arduino LEONARDO: 2(SDA), 3(SCL), ...
// On an arduino NodeMcu: D2(SDA), D1(SCL), ...
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#endif
void setup()
{
#ifdef LCD
lcd.init();
lcd.backlight();
lcd.begin(16, 2);
lcd.home ();
lcd.setCursor(3, 0);
lcd.print("INITIALIZE");
#elif defined(OLED)
display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS);
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(5, 25);
display.println("INITIALIZE");
display.display();
#endif
// wlecome_status();
}
void loop(){
}