Browse Source

change alignment

main
mm 1 year ago
parent
commit
597508ca07
  1. 10
      LostGame/lost-game.ino

10
LostGame/lost-game.ino

@ -1,4 +1,3 @@
//YWROBOT
//Compatible with the Arduino IDE 1.0 //Compatible with the Arduino IDE 1.0
//Library version:1.1 //Library version:1.1
#include <Wire.h> #include <Wire.h>
@ -8,23 +7,22 @@ LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars
void msg() void msg()
{ {
lcd.setCursor(0,0); lcd.setCursor(2,1);
lcd.print("you just lost"); lcd.print("you just lost");
lcd.setCursor(8,1); lcd.setCursor(10,2);
lcd.print("the game."); lcd.print("the game.");
} }
void setup() void setup()
{ {
lcd.init(); // initialize the lcd lcd.init();
// Print a message to the LCD.
lcd.backlight(); lcd.backlight();
} }
void loop() void loop()
{ {
lcd.clear(); lcd.clear();
delay(9000); delay(9500);
msg(); msg();
delay(500); delay(500);
} }

Loading…
Cancel
Save