Advertisement
constructeur735

Timer

Oct 3rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  3. int boutton = 0;
  4.  
  5. void setup() {
  6. pinMode(,INPUT);
  7. lcd.begin(16, 2);
  8. lcd.setCursor(0, 0);
  9. lcd.print("Appuyer sur");
  10. lcd.setCursor(0, 1);
  11. lcd.print("le bouton !");
  12. }
  13.  
  14. void loop() {
  15. boutton = digitalRead();
  16. if (boutton == HIGH) {
  17. lcd.clear();
  18.  
  19. }
  20. }
  21.  
  22. //code :
  23. //lcd.print("");
  24. //lcd.clear();
  25. //delay();
  26. //lcd.setCursor(0, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement