16*2 LCD EKRANA YAZI YAZMA
- muhammed ali balkaya
- 28 Kas 2018
- 1 dakikada okunur

LCD ekrana yazı işlemi 2 satıra toplam 32 karakter eklenecek şekilde sınırlandırılmıştır. Bu işlemi yaparken Programdaki örnek projelerden de hello word dosyasını yükleyerekte yapabilirsiniz.
Proje Kodu
#define SENSOR 2 // define pint 2 for sensor
// define pin 9 as for ACTION
/*
* Permission granted to share this code given that this
* note is kept with the code.
* Disclaimer: this code is "AS IS" and for educational purpose only.
*
*/
void setup() {
// E18-D80NK Obstacle Sensor Code by muhammed ali balkaya 2018022
Serial.begin(9600);// setup Serial Monitor to display information
pinMode(SENSOR, INPUT_PULLUP);// define pin as Input sensor
pinMode(1,OUTPUT);
}
void loop() {
// E18-D80NK Obstacle Sensor Code by Robojax.com 2018022
int L =digitalRead(SENSOR);// read the sensor
if(L == 0){
Serial.println(" Obstacle detected");
digitalWrite(1,HIGH);// send singal
}else{
Serial.println(" === All clear");
digitalWrite(1,LOW);// turn the relay OFF
}
delay(500);
// E18-D80NK Obstacle Sensor Code by muhammedalibalkaya 2018022
}
Comments