Controlling LEDs

You can control the vision LEDs of supported hardware via PhotonLib using setLED()/SetLED()/setLEDMode() (Java, C++, and Python respectively) on a PhotonCamera instance. An VisionLEDMode enum is provided in all three languages. These values include kOff, kOn, kBlink, and kDefault. kDefault uses the default LED value from the selected pipeline.

// Blink the LEDs.
camera.setLED(VisionLEDMode.kBlink);
// Blink the LEDs.
camera.SetLED(photonlib::VisionLEDMode::kBlink);
# Blink the LEDs.
from photonlibpy.photonCamera import VisionLEDMode

camera.setLEDMode(VisionLEDMode.kBlink)