Skip to content
Jeffrey Shen edited this page Aug 17, 2017 · 1 revision

This library provides basic capabilities to control the VEX LEDs.

Usage

Call the function:

void makeLED(tSensors p, int status)
  • p is the port where the LED is plugged into (this should be a digital port, and the LED should be set up as a digital out sensor).
  • status is what you want the LED to do. It can be ON, OFF, or TOGGLE.

Example

To toggle an LED simply write:

makeLED(dgtl3, TOGGLE); //LED must be plugged into digital 3