Menu

#295 Turn front LED On/Off from GUI

open
5
2003-12-11
2003-06-13
No

Here's a little code to turn your front LED On/Off..

when added, you can change it in Settings -> General

(dunno if it saves the settings)

Discussion

  • Samuel Juul Iversen

    Turn front LED On/Off v1

     
  • Samuel Juul Iversen

    Logged In: YES
    user_id=772724

    REMEMBER!! to add xkutils.cpp to XBoxMediaPlayer
    source...and xkutils.h and xexports.h to XBoxMediaPlayer
    header..

    Here is a little tweak, to the patch...This will gray out the
    used function, and sets focus on the other function..

    ie.: if "LED ON" is selected, "LED ON" will be grayed out, and it
    will set focus on "LED OFF"

    Open PGeneral.cpp

    find:

    XKUtils::SetXBOXLEDStatus(0);

    below that, add:

    SetButtonGrey(15, TRUE);
    SetButtonGrey(16, FALSE);
    SetButtonFocus(16);

    ---------

    then find:

    XKUtils::SetXBOXLEDStatus
    (XKUtils::LED_REGISTER_CYCLE0_GREEN|XKUtils::LED_REGIST
    ER_CYCLE2_GREEN|XKUtils::LED_REGISTER_CYCLE1_GREEN|XK
    Utils::LED_REGISTER_CYCLE3_GREEN);

    below that, add:

    SetButtonGrey(15, FALSE);
    SetButtonGrey(16, TRUE);
    SetButtonFocus(15);

    --------------------------

    That's all...EnJoY

    //[XC]D-Ice

     
  • Andreas Setterlind

    Logged In: YES
    user_id=630186

    Can this patch be closed as the feature/function in the CVS?

     
  • Andreas Setterlind

    • labels: --> Network Streaming Server
     
  • Andreas Setterlind

    • summary: Turn front LED On/Off --> Turn front LED On/Off from GUI
     
  • Andreas Setterlind

    • assigned_to: nobody --> xc_d-ice
     
  • Samuel Juul Iversen

    Logged In: YES
    user_id=772724

    isin't added to cvs yet....but i'll soon add it...as soon i find
    out to save the changes :-)

     

Log in to post a comment.