SHARE
TWEET

Untitled

jottdee Nov 15th, 2019 129 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top