I am trying to control two servos with arduino, who recive two bytes an (uint16) form simulink. The objective is to split in two 1 byte and write the value to the servos.
Your code got corrupted when you posted it. Did you notice the smiley?
Please edit your post above, delete out the code, click Tools–>Auto Format in the IDE, then re-copy the code into your post with code tags around it using the </> icon so it looks like