1233Views5Replies

Author Options:

Arduino script not working? Answered

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........

5 Replies

user
steveastrouk (author)2012-05-20

where are results defined ? You use "results" as a type but I don't see it defined.

steve

Select as Best AnswerUndo Best Answer

user
frollard (author)steveastrouk2012-05-20

+1

The type needs defining.

Select as Best AnswerUndo Best Answer

user
The nerdling (author)frollard2012-05-20

how?
i'm not very good at the programmimng

Select as Best AnswerUndo Best Answer

user
frollard (author)The nerdling2012-05-21

Where did you get the code? You wouldn't have used an undeclared type making it yourself...

Select as Best AnswerUndo Best Answer

user
The nerdling (author)frollard2012-05-21

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

Select as Best AnswerUndo Best Answer