Advertisement
J0N4TH4NGR4NDM0NT

Joke pirate

Apr 7th, 2022
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <LiquidCrystal_I2C.h>
  2.  
  3. LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x3F for a 16 chars and 2 line display
  4.  
  5. void setup() {
  6.   lcd.init();
  7.   lcd.clear();        
  8.   lcd.backlight();      // Make sure backlight is on
  9.  
  10.   // Print a message on both lines of the LCD.
  11.  
  12. }
  13.  
  14. void loop() {
  15.   lcd.setCursor(0,0);
  16.   lcd.print("Comment est mort");
  17.   lcd.setCursor(0,1);
  18.   lcd.print("le capitaine ");
  19.   delay(2000);
  20.   lcd.clear();
  21.   lcd.setCursor(0,0);
  22.   lcd.print("crochet ?");
  23.   delay(2000);
  24.   lcd.clear();
  25.   delay(1000);
  26.   lcd.setCursor(0,0);
  27.   lcd.print("En se grattant");
  28.   lcd.setCursor(0,1);
  29.   lcd.print("les couilles...");
  30.   delay(5000);
  31.   lcd.clear();
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement