Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma config(Sensor, dgtl12, green, sensorLEDtoVCC)
- #pragma config(Motor, port2, rightMotor, tmotorVex393_MC29, openLoop)
- #pragma config(Motor, port3, leftMotor, tmotorVex393_MC29, openLoop)
- #pragma config(Motor, port9, servoMotor, tmotorServoStandard, openLoop)
- //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
- /*
- Project Title: Test program, please ignore.
- Team Members: Dark Lord Vindictus
- Date: 02/02/2016
- Section: Your Mother
- Task Description:
- Pseudocode:
- Turn it on
- Wait a bit
- Turn it off
- Repeat once
- */
- task main()
- { // Program begins, insert code within braces
- turnLEDOff(green); // turnLEDOff (or On) is the function, the item in parentheses is the item. In this case it's the green LED defined as "green" in the Motors and Sensor setup.
- wait(1); // wait is the command, the item in the parentheses is the value. In this case it's 1, or one second. Use the waitInMilliseconds() command for other specifications.
- turnLEDOn(green);
- wait(1);
- turnLEDOff(green);
- wait(1);
- turnLEDOn(green);
- wait(1);
- turnLEDOff(green);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement