Error code on Arduino UNO.

Hello:

I'm trying to get this code funcone me. Physically pin 0 and 1 serial port RS232 or physical used.

 arraybytes byte [] = {65,66,67,68};

void setup () {
         Serial.begin (9600);
         Serial.write (arraybytes, 2);
}

void loop () {}

Verifies well with the Arduino Sketch 1.0.5 and upload it to ONE gives me this error.

Binary sketch size: 1752 bytes (of a maximum of 32,256 bytes)
avrdude: stk500_getsync (): not in sync: resp = 0x00

What is the problem and how can I fix it?

A greeting.

Moderator edit: Spaces removed from tags.

In C, the data type specifier comes before the identifier. Try:

byte arraybytes  [] = {65,66,67,68};

void setup () {
         Serial.begin (9600);
         Serial.write (arraybytes, 2);
}

void loop () {

} // code]

You also had the comment at the very end wrong. A single line comment begins with two slashes (//).

Physically pin 0 and 1 serial port RS232 or physical used.

Can you explain what you mean by this ? What do you have connected to pins 0 and 1 ?

UKHeliBob:

Physically pin 0 and 1 serial port RS232 or physical used.

Can you explain what you mean by this ? What do you have connected to pins 0 and 1 ?

I think this

Verifies well with the Arduino Sketch 1.0.5 and upload it to ONE gives me this error.

Shows you it is a google translate question and it has translated UNO into one.

That error has nothing to do with the code you are trying to upload.