Kodlarını paylaşırsan daha faydalı olabiliriz.
Şu an bunun için müsait değilim fakat uygun bir zamanda atmaya çalışacağım.
Kodlarını paylaşırsan daha faydalı olabiliriz.
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(11,2,3, 4,5,6,7, 14,15,16,17);
int contrast = 10; // PWM pin (contrast level)
int led = 13;
void setup(){
// set up the LCD's number of columns and rows:
lcd.begin(20, 4);
// initialize the serial communications:
Serial.begin(115200);
pinMode(contrast, OUTPUT);
pinMode(led, OUTPUT);
analogWrite(contrast, 70); // 0: maximum contrast 255: minimum
digitalWrite(led, 1);
lcd.clear();
}
void loop()
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
lcd.write(Serial.read());
}
}
}