Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. const int Ap = 7;
  2. const int Ae = 5;
  3.  
  4. const int Bp = 4;
  5. const int Be = 6;
  6.  
  7. const int L1 = 2;
  8. const int L2 = 3;
  9.  
  10. void setup() {
  11. // put your setup code here, to run once:
  12. pinMode(Ap, OUTPUT);
  13. pinMode(Ae, OUTPUT);
  14. pinMode(Bp, OUTPUT);
  15. pinMode(Be, OUTPUT);
  16. Serial.begin(9600);
  17.  
  18. delay(3000);
  19. }
  20.  
  21. void loop() {
  22. // put your main code here, to run repeatedly:
  23. digitalWrite(Ap, false);
  24. digitalWrite(Bp, true);
  25. analogWrite(Ae, 150);
  26. analogWrite(Be, 105);
  27. /* if(digitalRead(L1)==LOW){
  28. Serial.println("I SEE");
  29. }
  30. else if(digitalRead(L2)==LOW){
  31. Serial.println("I SEE TOO");
  32. }
  33. else Serial.println("");*/
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement