Cordial saludo soy nuevo conb la programacion de arduino, estoy realizando un proyecto de un carro detector de lineas, ceo los comandos y al compilar me da el siguiente error else' without a previous 'if'
este son los comando ingresados, no se donde me estoy equibocando
unsigned long x,y,z;
float s1,s2,s3,s4,s5;
int pwm=100;
int color=350;
int vl=pwm+60;
int vh=pwm-60;
void setup() {
Serial.begin(9600);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
}
Read the forum guidelines to see how to properly post code and some hints on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.