Instructables

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

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

steve
+1

The type needs defining.
The nerdling (author)  frollard1 year ago
how?
i'm not very good at the programmimng
Where did you get the code? You wouldn't have used an undeclared type making it yourself...
The nerdling (author)  frollard1 year 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
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!