Controlling backlight on touch

  • Controlling backlight on touch

    How to control LCD backlight on and off on touch.I observed, on touching the screen in screensaver mode it wakes up the system but also executes the GUI widgets.
    On touch,backlight should on but should not execute widgets in GUI.
  • Hello,

    The touch input needs to be stored in the emWin PID buffer,
    so it can be processed automatically by the Window Manager. I
    would recommend not to store touch events in the PID buffer as
    long as the backlight of the display is off.


    Best regards,
    Adrian
  • Backlight control

    I am working on single layer ,layer 0.
    When user touches the LCD when back light is off that time i am making pState->Pressed = 0.
    Then also it receive touch (Notify parent is get called).
    Do you any sample example for making controling backlight.

    case WM_TOUCH:
    case WM_TOUCH_CHILD:

    //on touch backlight will be on //
    if( backLight == 0 )
    {
    deviceAction.Device.Type = CLASS_LOGICAL_OUTPUT;
    deviceAction.Device.Address = DEVICE_BACKLIGHT;
    deviceAction.ActionId = TurnUp;
    BacklightConfig.ClassId = CONFIG_IO; /* Some necessary initialisations for the structure*/
    BacklightConfig.ConfigId = CONFIG_ID_IO_CHANGE_OUTPUT_STATE;
    BacklightConfig.configStruct = &deviceAction;
    SendReceiveDataService(BacklightConfig);
    backLight = 1; /* backlight off is reset*/
    /* used to restart */
    pState = (GUI_PID_STATE *)pMsg->Data.p;
    pState->Pressed = 0;
    //return;
    }
    else
    {
    backLight = 1; /* backlight off is reset*/
    }