Hi
Can someone help me draw a flowchart for this code with theexplanation in details?
int DirectionPin = 2; //Direction pin
int StepPin = 3; //Stepper pin
int EnablePin = 7; //Motor enable pin
int max_speed_us = 70;
void setup(){
/*Sets all pin to output; the microcontroller will send them(thepins) bits, it will not expect to receive any bits from thiesepins.*/
pinMode(DirectionPin, OUTPUT);
pinMode(StepPin, OUTPUT);
pinMode(EnablePin, OUTPUT);
digitalWrite(EnablePin, HIGH); //Disbales the motor, so it can restuntill it is called uppond
Serial.begin(9600);
}
void loop(){
/*Here we are calling the rotate function to turn the steppermotor*/
rotate(800, 0.1); //The motor rotates 800 steps clockwise with aspeed of 0.1 (slow)
delay(5000);
rotate(1600, 0.5); //The motor rotates 1600 steps clockwise with
PayPal Gateway not configured
PayPal Gateway not configured