Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  3. int tiltpin = 6;
  4.  
  5. void setup()
  6. {
  7. lcd.begin(16,2);
  8. lcd.print("Lottozahl");
  9. }
  10.  
  11. void loop() {
  12.  
  13. int lottoZahl = random(50);
  14. lcd.setCursor(0,1);
  15.  
  16. if(digitalRead(6) == 1)
  17. lcd.print(lottoZahl);
  18.  
  19. delay(500);
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement