• bilgi@etkinbot.com
  • +90 850 885 2580
TR EN

LCD Ekran Uygulaması

Gerekli Malzemeler

  • Etkinbot V1
  • Arduino 16x2 LCD Ekran


MBlock Kodları






Arduino Kodları

#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>

#include "LiquidCrystal_I2C.h"

double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
LiquidCrystal_I2C lcd(0x27,16,2);

void setup(){
    lcd.init();
    lcd.clear();
    lcd.backlight();
}

void loop(){
    lcd.setCursor(0,0);
    lcd.print("---ETKINBOT---");
    lcd.setCursor(0,1);
    lcd.print("---LCD EKRANI---");
    _delay(1);
    lcd.setCursor(0,0);
    lcd.print("ETKİNBOT İLE");
    lcd.setCursor(0,1);
    lcd.print("MERHABA DUNYA");
    _loop();
}

void _delay(float seconds){
    long endTime = millis() + seconds * 1000;
    while(millis() < endTime)_loop();
}

void _loop(){
}