Advertisement
jottdee

Untitled

Nov 15th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <Stepper.h>
  2. Stepper PAN(8, 2, 3, 6, 7);
  3.  
  4.  
  5.  
  6. float ile = ile;
  7. void setup(){
  8.  
  9.  
  10. Serial.begin(9600);
  11.  
  12. }
  13.  
  14. void loop(){
  15.  
  16. if(Serial.available()>0){
  17. ile=Serial.parseFloat();
  18. Serial.print("speed ");
  19. Serial.println(ile);
  20. }
  21.  
  22. else
  23. {
  24. PAN.step(-1);
  25. delay(ile);}
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement