Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
v1.1.1 to add PWM_StepperControl example
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
khoih-prog authored Jan 22, 2023
1 parent def46a7 commit 3c46fd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/PWM_StepperControl/PWM_StepperControl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c46fd2

Please sign in to comment.