SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <LiquidCrystal.h>
  2.  
  3. // инициализируем объект-экран, передаём использованные
  4. // для подключения контакты на Arduino в порядке:
  5. // RS, E, DB4, DB5, DB6, DB7
  6. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  7.  
  8.  
  9. void calc(String data, int  row, int coluwn, int timer)
  10. {
  11.  
  12.     lcd.setCursor(row, coluwn);
  13.     lcd.print(data);
  14.     delay(timer);
  15.     lcd.setCursor(row, coluwn);
  16.     lcd.print(data);
  17.     delay(timer);
  18.     lcd.clear();
  19.  
  20. }
  21.  
  22. void setup()
  23. {
  24.   lcd.begin(16,2);
  25.  
  26. }
  27.  
  28.  
  29. void loop(){
  30.     calc("Hello", 5,0,2000);
  31.     calc("I am", 6, 1, 2000);
  32.     calc("LCD DISPLAY", 2, 0, 2000);
  33.     calc("My serial number", 0, 1, 2000);
  34.     calc("is", 7, 0, 2000);
  35.     calc("MT-16S2H-2FLA", 1, 1, 2000);
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top