tuya_ble_sdk_demo/components/inv_mpu_driver/tuya_gesture_rec.c
/**
 * @brief recognize the direction of the turning gesture
 * @param[in] none
 * @return gesture code
 */
@brief recognize the direction of the turning gesture
@param[in] none
@return gesture code
@brief recognize the direction of the turning gesture @param [ in ] none @return gesture code
GES_CODE_E __rec_turn_gesture(VOID_T)
{
    GES_CODE_E ret = GES_NONE;
    if (sg_x_cw)
    {
        ret = GES_TURN_CW;
        TUYA_APP_LOG_DEBUG("Gesture: cw");
    }
    else
    {
        ret = GES_TURN_CCW;
        TUYA_APP_LOG_DEBUG("Gesture: ccw");
    }
    return ret;
}
GES_CODE_E __rec_turn_gesture ( VOID_T ) { GES_CODE_E ret = GES_NONE ; if ( sg_x_cw ) { ret = GES_TURN_CW ; TUYA_APP_LOG_DEBUG ( " " ) ; } else { ret = GES_TURN_CCW ; TUYA_APP_LOG_DEBUG ( " " ) ; } return ret ; }
@brief recognize the direction of the turning gesture
 @param[in] none
 @return gesture code
@brief recognize the direction of the turning gesture @param [ in ] none @return gesture code