1499Views5Replies
Arduino script not working?
the script isn't compiling.
it says:
expected initializer before 'void'
how can i fix this
also, i want to be able to set the buttons on the transmitter e.g, click a button on the arduino, on the remote click forward reverse left and right
the car i want to use is a tyco rc mutator, i have realays that i'm going to use for the motors\
##edit##
...........
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(BUTTON_PIN, INPUT); <--- delete these when testing
pinMode(STATUS_PIN, OUTPUT); <---
}
// Storage for the recorded code
int codeType = -1; // The type of cod........
Comments
8 years ago
where are results defined ? You use "results" as a type but I don't see it defined.
steve
Answer 8 years ago
+1
The type needs defining.
Answer 8 years ago
how?
i'm not very good at the programmimng
Answer 8 years ago
Where did you get the code? You wouldn't have used an undeclared type making it yourself...
Answer 8 years ago
i sort of made it myself, i got one code off here from an arduino controlled rc car, and used a bit from the ir remote record code from the ir library