From 3c46fd260099eaabce44703b4f39452f0f881219 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Sun, 22 Jan 2023 15:00:54 -0500 Subject: [PATCH] v1.1.1 to add `PWM_StepperControl` example ### Release v1.1.1 1. Add example [PWM_StepperControl](https://github.com/khoih-prog/Dx_PWM/tree/main/examples/PWM_StepperControl) to demo how to control Stepper Motor using PWM --- examples/PWM_StepperControl/PWM_StepperControl.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/PWM_StepperControl/PWM_StepperControl.ino b/examples/PWM_StepperControl/PWM_StepperControl.ino index e27febf..6b2b561 100644 --- a/examples/PWM_StepperControl/PWM_StepperControl.ino +++ b/examples/PWM_StepperControl/PWM_StepperControl.ino @@ -66,15 +66,15 @@ void setup() { pinMode(DIR_PIN, OUTPUT); - Serial.begin(115200); + SerialDebug.begin(115200); - while (!Serial && millis() < 5000); + while (!SerialDebug && millis() < 5000); delay(100); - Serial.print(F("\nStarting PWM_StepperControl on ")); - Serial.println(BOARD_NAME); - Serial.println(DX_PWM_VERSION); + SerialDebug.print(F("\nStarting PWM_StepperControl on ")); + SerialDebug.println(BOARD_NAME); + SerialDebug.println(DX_PWM_VERSION); // Create PWM object and passed just a random frequency of 500 // The duty cycle is how you turn the motor on and off