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
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 3942cd05be - Show all commits

View File

@ -2,8 +2,10 @@
volatile boolean debug_state = true; volatile boolean debug_state = true;
volatile boolean cam_dir = true; volatile boolean cam_dir = true;
volatile boolean running = true;
const int fullRotation = 600; const int stepsPerRevolution = 200;
const int fullRotation = 3 * stepsPerRevolution;
const int openRotationForward = 300; const int openRotationForward = 300;
const int openRotationBackward = 300; const int openRotationBackward = 300;
@ -22,7 +24,7 @@ const int serialDelay = 5;
Adafruit_MotorShield AFMS = Adafruit_MotorShield(); Adafruit_MotorShield AFMS = Adafruit_MotorShield();
//Set up for a 200step motor (NEMA 17) //Set up for a 200step motor (NEMA 17)
Adafruit_StepperMotor *stepper = AFMS.getStepper(200, 1); Adafruit_StepperMotor *stepper = AFMS.getStepper(200, 2);
void setupMotor () { void setupMotor () {
//TWBR = ((F_CPU /400000l) - 16) / 2; // Change the i2c clock to 400KHz //TWBR = ((F_CPU /400000l) - 16) / 2; // Change the i2c clock to 400KHz