Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 9 Current »

C++Blocks
#include <Servo.h> 
 
Servo myservo; 
int pos = 0;    
// variable to store the servo position 

void setup() 
{ 
  myservo.attach(7);  
} 

void loop() 
{ 
  for(pos = 0; pos <= 180; pos++)
  {                                
    myservo.write(pos);            
    delay(50);                     
  } 
  for(pos = 180; pos >= 0; pos--)   
  {                                
    myservo.write(pos);            
    delay(50);                     
  } 
}


]] ></ac:plain-text-body></ac:structured-macro></div></td><td><div class="content-wrapper"><p><ac:image ac:height="250"><ri:attachment ri:filename="image2020-1-20_18-8-41.png" /></ac:image></p></div></td></tr></tbody></table><p><br /></p><p><br /></p><p><br /></p>
  • No labels