So basicly what's happening is that i just started programming on arduino, but i have faced two little errors, help please? Obs: I am not english, so i can't write that good, sorry :p~~
The errors are:
´sketch_nov03a:6: error: expected initializer before 'if'
sketch_nov03a:11: error: expected initializer before 'if'
Well, it's sopose to be, i wanted the robot, to, when it was 10centimeters away from the thing, used send a 5v thing to Slot10 and if it wasn't, to walk forward.
How many setups ? Don't know what that means xD, Sorry :;/
EDIT: How do i say to the robot, when it receives a signal from the sensor, to do for example, light up the led on slot1?
I don't know what Setup does for itself... But it should when receives a positive signal from the proximity sensor it should send an output to pin10, and if false, then continue walking.
How can i do that?
Thanks in advance
EDIT 1: That is the full sketch, i copied everyhing