Receive serially data 0 to 9 on LCD display with arduino.
Here i am using online IDE Tinkercad . If you don't know what is tinkercad then refer my blog HERE or else you can use offline IDE also.
Code :-
#include
<LiquidCrystal.h>
LiquidCrystal lcd(12, 11,
5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
}
void loop() {
if(Serial.available()){
delay(600);
lcd.clear();
lcd.print(Serial.read());}
}
Output :-
Comments
Post a Comment