I´m creating a function which can rotate a 28BYJ-48 motor, using ESP32.
However, I have the error message shown in the subject.
I've already found some similar topics, but the presented solutions does not match my problem.
I want to create an array according to the arguments sent to the funcion:
void operacao(char sentido, char eixo, int passos) {
int velOper = 15;
if ((sentido == "CW") && (eixo == "H")) {
int giraMotor[] = {19, 21, 22, 23};
}
Please follow the advice on posting code given in posting code
In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless
tamer79:
Sorry, the rest of the code is fine, I thought it would be easier to analyze if I only post the problem part.
http://snippets-r-us.com/
For that reason there are pinned topic's in bold at the top of each board. But people with questions seem to think those don't apply to them...