Grade 6

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
    btbt on
  2. Then go to "Visibility"
  3. Then "Visible"

Pages