Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
- int tiltpin = 6;
- void setup()
- {
- lcd.begin(16,2);
- lcd.print("Lottozahl");
- }
- void loop() {
- int lottoZahl = random(50);
- lcd.setCursor(0,1);
- if(digitalRead(6) == 1)
- lcd.print(lottoZahl);
- delay(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement