Hey there,
I am interfacing WS2812 addressable led using the WS2812Serial.h . and driving stepper motor using one of the examples of blink without delay.
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= interval) {
previousMillis = currentMillis;
if (stepPinState == LOW) {
stepPinState = HIGH;
}
else {
stepPinState = LOW;
}
digitalWrite(stepPin_cb1_1, stepPinState);
digitalWrite(stepPin_cb1_2, stepPinState);
}
in the loop, i am calling both functions
FastLED.show();
Drive_motors();
However, the problem is the speed of the stepper motor, it is rotating very slowly after adding the entire block of LED code.
Thank you for the reading,
I am accepting every suggestion here.
Thanks for the help.