daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <LiquidCrystal.h>
  2. /int POTX=2;
  3. int POTY=A3;/
  4. int valx=0;
  5. int valy=0;
  6. const int RS=6;
  7. const int E=7;
  8. const int D4=2;
  9. const int D5=3;
  10. const int D6=4;
  11. const int D7=5;
  12. LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
  13.  
  14. void setup() {
  15. lcd.begin(16,2);
  16. lcd.print("demarage...3") ;
  17. delay(1000);
  18. lcd.clear();
  19. lcd.print("demarage...2");
  20. delay(1000);
  21. lcd.clear();
  22. lcd.print("demarage...1");
  23. delay(1000);
  24. lcd.clear();
  25. delay(10);
  26.  
  27. }
  28. void loop() {
  29.  
  30.   valx=analogRead(A2);
  31.   valy=analogRead(A3);
  32.  
  33.   lcd.setCursor(0,0);
  34.   lcd.print("axe x :");
  35.   lcd.print(valx);
  36.   lcd.setCursor(0,1);
  37.   lcd.print("axe y :");
  38.   lcd.print(valy);
  39.   delay(1000);
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top