i want to make a useless box with 6 buttons MY CODE // steppmm*moveX=240 #include <Stepper.h> int BUTTON_PIN[7] = {26, 27, 22, 23, 24, 25, 10}; int lastState = LOW; int currentState; float Stepmm = 250 ; float A = 0; float B = 0; int S1[0]; const int stepsPerRevolution = 200 ; int switchPos[9] […]
Categories
6 buttons useless box
- Post author By Marcia D.
- Post date February 28, 2021
- No Comments on 6 buttons useless box
- Tags -11, -23, 10}; int lastState = LOW; int currentState; float Stepmm = 250 ; float A = 0; float B = 0; int S1[0]; const int stepsPerRevolution = 200 ; i, 12, 15, 18, 21, 22, 24, 24}; Stepper myStepper(stepsPerRevolution, 25, 27, 3, 5); int stepCount = 0; void setup() { Serial.begin(9600); myStepper.setSpeed(180); for (int i = 0; i < 10; i++) { pinMode(BUTTON_PIN[i], 6, 7, 9, i want to make a useless box with 6 buttons MY CODE // steppmm*moveX=240 #include int BUTTON_PIN[7] = {26, INPUT_PULLUP); } moveX(2); while (digitalRead(BUTTON_PIN[6]) == 1) { //moveX(-1); Serial.println("a"); } moveX(1.5); while (digitalRead(BUTTO, which is of non-class type 'int [0]' S1.back(i); ^~~~ Stepper_Motor_1.3:50:8: error: request for member 'pop' in 'S1', which is of non-class type 'int [0]' S1.pop(0); ^~~ exit status 1 incompatible types in assignment of 'int' to 'int [0]'