HERC_SetLED


Sets the leds on or off for the Hercules.

BOOL WINAPI HERC_SetLED(

    DWORD dwDeckID,
    DWORD dwLEDCode,

    BOOL  bOn
);

Parameters

dwDeckID

The ID that specifies either DeckA – 0 or DeckB - 1.

dwLEDCode

 A constant to determine which LED is turned on or off.

 

HERC_LED_PLAY

HERC_LED_CUE

HERC_LED_AUTOBEAT

HERC_LED_MONITOR  

HERC_LED_MASTERTEMPO

HERC_LED_LOOPFX

HERC_LED_CUEFX

HERC_LED_FX

HERC_LED_FLASHPLAY

HERC_LED_FLASHCUE

 

 

bOn

Determines if led will be turned on or off

 

 

Return value
If successful, then TRUE is returned, else FALSE is returned. Use HERC_ErrorGetCode to get the error code.

Error codes

HERC_ERROR_INIT

 The Hercules has not been initialized.

Remarks
None

Example
Light up play button for DeckA.

//light up the Play LED for DeckA

HERC_SetLED (0, HERC_LED_PLAY, TRUE);

See also
 HERC_Init