Merge in 9 months of work on capper branch #71

Merged
mattmcw merged 95 commits from capper into main 2023-02-19 05:28:46 +00:00
2 changed files with 39 additions and 3 deletions
Showing only changes of commit b0ca15bd8d - Show all commits

View File

@ -1,4 +1,4 @@
#include <Servo.h> #include <Servo.h>
boolean debug_state = true; boolean debug_state = true;
@ -10,8 +10,8 @@ Red - 5V
Black - GND Black - GND
Yellow - PWM Pin (9 in this example) Yellow - PWM Pin (9 in this example)
Using TowerPro SG-5010 + Using TowerPro SG-5010 - default angle 93
TowerPro TowerPro MG-995 - default angle 93
as servos for development as servos for development
---------------------------------------------------- ----------------------------------------------------
*/ */

View File

@ -0,0 +1,36 @@
#include <Servo.h>
const int PIN_SERVO = 9;
Servo servo;
/*
----------------------------------------------------
Servo - Arduino
-
Red - 5V
Black - GND
Yellow - PWM Pin (9 in this example)
Using TowerPro SG-5010 - default 93
TowerPro MG-995 -
as servos for development
----------------------------------------------------
*/
void setup() {
Serial.begin(57600);
Serial.flush();
Servo_init();
}
void loop() {
}
void Servo_init () {
servo.attach(PIN_SERVO);
int angle = servo.read();
Serial.print("Default angle: ");
Serial.println(angle);
}