Facebook
From Lukac, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 88
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  3. byte mosa[8] = {
  4.  B00010,
  5.  B01001,
  6.  B00101,
  7.  B00011,
  8.  B01111,
  9.  B10011,
  10.  B10011,
  11.  B01101
  12. };
  13. void setup()
  14. {
  15.  lcd.begin(16,2);
  16.  lcd.createChar(0, mosa);
  17. }
  18. void loop()
  19. {
  20.  lcd.leftToRight();
  21.  lcd.clear();
  22.  lcd.setCursor(0,0);
  23.  lcd.write(byte(0));
  24.  for(int i = 0; i <16; i++)
  25.  {
  26.   lcd.scrollDisplayRight();
  27.   delay(400);
  28.  }
  29.  
  30. }