mirror of
https://github.com/PotentiaRobotics/engine-software.git
synced 2025-04-17 18:40:18 -04:00
I like motor spinning :D
This commit is contained in:
parent
7e1c2ed46a
commit
f41b2dc3e1
19
communication/revmotor_test.ino
Normal file
19
communication/revmotor_test.ino
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#include <Servo.h>
|
||||||
|
|
||||||
|
Servo myservo;
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
myservo.attach(9);
|
||||||
|
Serial.begin(9600);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
for(int i=1500; i<2100; i+=100)
|
||||||
|
{
|
||||||
|
myservo.writeMicroseconds(i);
|
||||||
|
delay(3000);
|
||||||
|
Serial.println(i);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user