error Arduino UNO to control servo serial

i make these code with processing prog to make your arm robot work with serial port with arduino uno board but i cant make prog in microprocessor to make the servo motor motion.

my code processing

can any one tell me the code put in micro?

This is your Processing code?


my project page

Hard to believe that even compiles.

There are only two functions you need to use on the Arduino. Serial.available() will tell you how many bytes there are to read, and will read one of them.

then what i do to complete the project

then what i do to complete the project

Read this Then, write some code.