Final test of motorized shades

This commit is contained in:
Gregg 2023-07-08 16:55:22 -05:00
parent db0f522297
commit f7419da35b
2 changed files with 4 additions and 2 deletions

View File

@ -132,7 +132,7 @@ void setup() {
new SpanAccessory(); new SpanAccessory();
new Service::AccessoryInformation(); new Service::AccessoryInformation();
new Characteristic::Identify(); new Characteristic::Identify();
new DEV_WindowShade(new Stepper_TB6612(23,32,22,14,33,27), new Stepper_A3967(17,16,19,18,21)); // instantiate drivers for each board and specify pins used on ESP32 new DEV_WindowShade(new Stepper_TB6612(23,32,22,14,33,27), new Stepper_A3967(18,21,5,4,19)); // instantiate drivers for each board and specify pins used on ESP32
} }
////////////////////////////////////// //////////////////////////////////////

View File

@ -46,7 +46,9 @@ void setup() {
Serial.printf("\nHomeSpan Stepper Control\n\n"); Serial.printf("\nHomeSpan Stepper Control\n\n");
bigMotor=(new Stepper_TB6612(23,32,22,14,33,27))->setStepType(StepperControl::HALF_STEP)->setAccel(10,20); bigMotor=(new Stepper_TB6612(23,32,22,14,33,27))->setStepType(StepperControl::HALF_STEP)->setAccel(10,20);
smallMotor=new Stepper_A3967(17,16,19,18,21); smallMotor=new Stepper_A3967(18,21,5,4,19);
// smallMotor->setStepType(StepperControl::EIGHTH_STEP);
// bigMotor->setStepType(StepperControl::HALF_STEP); // bigMotor->setStepType(StepperControl::HALF_STEP);
// bigMotor->setAccel(10,20); // bigMotor->setAccel(10,20);