Just switched from RobotC to Arduino programming. How would I write this program

Need help converting the program in the attached image below to arduino.

Looks like C++ already to me. No conversion needed.

@rubenq_1, it's much easier to help if you post code as text rather than a picture.

The Arduino system does not have a setServo() function. It uses either Servo.write() or Servo.writeMicroseconds() which could be used to create a setServoFunction() if you tell us what the setServo() function does.

...R

PS ... I am suggesting to the Moderator to move this to the Programming section.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled “How to use this Forum”.
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks… Tom… :slight_smile:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.