Coding Definitions


Code

Functions

/* */

This means whatever is between the slashes are comments only.

Printf(Hello, world/n’);

Printf means that whatever is between the quotes will be shown on the screen. Every line of code has to end with;

#include <linkbot.h>CLinkbotI robot

Connect to this type of robot. (I or L)

robot.setLEDColor(pink)

Changes the color of the LED light.

robot.driveDistance(10,1.75)

Moves robot forward10 inches(1.75is the wheel radius)

robot.turnLeft(90.1.75,3.69)

Degrees you want it to turn, radius trackwidth.

robot.turnRight(90.1.75,3.69)

Degrees you want it to turn, radius trackwidth.

robot.driveTime (5);

Robot drives for a certain amount of time

robot.driveAngle(360);

Robot moves forward by specific

angle

robot.setBuzzerfrequency(450, 15