Advertisement
Braulio777

Arduino Happy Face With Reset

Nov 23rd, 2014
366
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Happy Face With Reset
  2. #include <LiquidCrystal.h>
  3. LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7); // pins for RS, E, DB4, DB5, DB6, DB7
  4. byte a[8] = { B00000,
  5.                       B01010,
  6.                       B01010,
  7.                       B00000,
  8.                       B00100,
  9.                       B10001,
  10.                       B01110,
  11.                       B00000  };
  12. void setup()
  13. {
  14.    lcd.begin(16, 2);
  15.    lcd.createChar(0, a);
  16.    lcd.setCursor(0, 1);//Pushing Switch Reset(RST), Restart from Down to Up
  17. }
  18. void loop()
  19. {
  20.   lcd.write(byte(0));
  21.   delay(100);
  22. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement