mirror of
https://github.com/ft-NotArt/ShyEye.git
synced 2026-09-22 20:36:51 +02:00
~ | Usefull Servo_reset function
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include "Servo.h"
|
||||
|
||||
#define START_POS 90
|
||||
|
||||
Servo servoX ;
|
||||
Servo servoY ;
|
||||
|
||||
void setup() {
|
||||
servoX.attach(9) ; // attache le servoX au pin 9
|
||||
servoY.attach(10) ; // attache le servoY au pin 10
|
||||
|
||||
servoX.write(START_POS) ;
|
||||
servoY.write(START_POS) ;
|
||||
delay(1000) ;
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user