#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
lcd.setCursor(3, 0);
lcd.print("Malaysia Boleh");
}
void loop()
{
lcd.setCursor(8, 1);
lcd.print(millis()/1000);
}
//NOTE:
//LCD RS pin to digital pin 7
//LCD Enable pin to digital pin 6
//LCD D4 pin to digital pin 5
//LCD D5 pin to digital pin 4
//LCD D6 pin to digital pin 3
//LCD D7 pin to digital pin 2
//LCD R/W, VSS, V0, K pin to ground
//LCD A pin to 5v
//LCD VDD pin to 3v or 1k-5v
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
lcd.setCursor(3, 0);
lcd.print("Malaysia Boleh");
}
void loop()
{
lcd.setCursor(8, 1);
lcd.print(millis()/1000);
}
//NOTE:
//LCD RS pin to digital pin 7
//LCD Enable pin to digital pin 6
//LCD D4 pin to digital pin 5
//LCD D5 pin to digital pin 4
//LCD D6 pin to digital pin 3
//LCD D7 pin to digital pin 2
//LCD R/W, VSS, V0, K pin to ground
//LCD A pin to 5v
//LCD VDD pin to 3v or 1k-5v