LED Controls

int ndigo_set_led_color(ndigo_device *device, int led, unsigned short r, unsigned short g, unsigned short b)

Set the LED to the selected color.

No automatic updates are performed.

Parameters:
  • device – [in] Pointer to the device.

  • led – [in] Which LED to set.

  • r – [in] Red value from 0 to 255.

  • g – [in] Green value from 0 to 255.

  • b – [in] Blue value from 0 to 255.

Returns:

A status code.

int ndigo_set_led_automode(ndigo_device *device, int led)

Set LED to be controlled automatically by the hardware.

Parameters:
  • device – [in] A pointer to the device.

  • led – [in] Which LED to set.

Returns:

A status code.

int ndigo_set_status_led(ndigo_device *device, bool enable)

Enable or disable the status LEDs.

Parameters:
  • device – [in] A pointer to the device.

  • enable – [in] Boolean to enable or disable the LEDs.

Returns:

A status code.

int ndigo_identify(ndigo_device *device, int repeat)

Flash the LEDs on the card.

Parameters:
  • device – [in] A pointer to the device.

  • repeat – [in] Number of times to flash the LEDs.

Returns:

A status code.