#include <LiquidCrystal.h>
const int LCD_RS = PB13;
const int LCD_RW = PB14;
const int LCD_EN = PB15;
const int LCD_D4 = D8;
const int LCD_D5 = D9;
const int LCD_D6 = D10;
const int LCD_D7 = D11;
LiquidCrystal lcd(LCD_RS, LCD_RW, LCD_EN, LCD_D4, LCD_D5, LCD_D6, LCD_D7);
int data = 10;
void setup() {
lcd.begin(20,4);
}
void loop() {
lcd.setCursor(0, 0);
lcd.print("Hello World");
lcd.setCursor(0, 1);
lcd.print("Sunphong");
lcd.setCursor(6, 2);
lcd.print("ABAC");
lcd.setCursor(0, 3);
lcd.print("COIN=");
lcd.print(data);
data = data + 1;
delay(1000);
}