Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma config(Sensor, in1, sensor, sensorReflection)
- #pragma config(Sensor, dgtl1, led, sensorLEDtoVCC)
- #pragma config(Motor, port1, motor, tmotorVex393_HBridge, openLoop)
- //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
- task main()
- {
- while(1 == 1)
- {
- if(SensorValue(sensor) < 400)
- {
- turnLEDOn(led);
- }
- else
- {
- turnLEDOff(led);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment