Grade 6

Commenting Your Code

Commenting your code is very important. This is the part of writing the code that's in plain english. If someone looks at your code they can see what your code is meant to do.

Commenting Worksheet

Submit the Following to your instructor:

Program Name:
Submitted by:

Check off when you complete

Example of well-commented code

#pragma config(Sensor, S2,     lightSensor,         sensorLightActive)
#pragma config(Motor,  motorB,          ,              tmotorNormal, PIDControl)
#pragma config(Motor,  motorC,          ,              tmotorNormal, PIDControl)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

//                                InclinePlane                               //
//                                                                           //

RobotC Syntax / Hello World!

Hello World!

Set Up Bluetooth Communication

What is Bluetooth?

Connect the NXT to a Computer

How to set up the NXT

  1. Go to the Bluetooth menu on the NXT turn Bluetooth On
    bt bt on
  2. Then go to "Visibility"
  3. Then "Visible"