is this full coding or not? step1() and step2() errors...idk why and how to fix them...can anybody help me? it supposed to be like this video
please help me!!!
below is the coding
#define steps 256
const int buttonPin = 2;
const int buttonPin2 = 3;
const int stepsPerRevolution = 200;
int buttonState = 0;
int buttonState2 = 0;
int LED1 = A0;
int LED2 = A1;
Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11);
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH)
buttonState2 = digitalRead(buttonPin2);
if (buttonState2 == HIGH)
It is not complete code.
steps1() and step2() are calls to functions which do not exist in the code. This results in errors and failure to compile.
See this documentation on functions.
My guess is that the two missing functions are somewhere in the video you linked, and you did not add them to the code you posted.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.