新聞中心

        EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > ucos II+ucGUI+s3c2410+LCD+觸摸屏整合

        ucos II+ucGUI+s3c2410+LCD+觸摸屏整合

        作者: 時(shí)間:2016-10-08 來(lái)源:網(wǎng)絡(luò) 收藏

        xMin = xyMinMax[GUI_COORD_X].Min;

        xMax = xyMinMax[GUI_COORD_X].Max;

        } else {

        xMax = xyMinMax[GUI_COORD_X].Min;

        xMin = xyMinMax[GUI_COORD_X].Max;

        }

        if (xyMinMax[GUI_COORD_Y].Min xyMinMax[GUI_COORD_Y].Max) {

        yMin = xyMinMax[GUI_COORD_Y].Min;

        yMax = xyMinMax[GUI_COORD_Y].Max;

        } else {

        yMax = xyMinMax[GUI_COORD_Y].Min;

        yMin = xyMinMax[GUI_COORD_Y].Max;

        }

        /* Execute the state machine which reads the touch */

        //switch (ReadState) {

        //case 0:

        yPhys = TOUCH_X_MeasureY();

        // TOUCH_X_ActivateY(); /* Prepare X- measurement */

        // ReadState++;

        // break;

        //default:

        xPhys = TOUCH_X_MeasureX();

        // TOUCH_X_ActivateX(); /* Prepare Y- measurement */

        /* Convert values into logical values */

        #if !GUI_TOUCH_SWAP_XY /* Is X/Y swapped ? */

        x = xPhys;

        y = yPhys;

        #else

        x = yPhys;

        y = xPhys;

        #endif

        if ((x

        GUI_TOUCH_StoreUnstable(-1,-1);

        } else {

        x = AD2X(x);

        y = AD2Y(y);

        GUI_TOUCH_StoreUnstable(x,y);

        }

        /* Reset state machine */

        //ReadState=0;

        // break;

        //}

        #endif /* WIN32 */

        }

        五、 GUI多任務(wù)測(cè)試:

        測(cè)試程序:MT_MultiTasking.c


        上一頁(yè) 1 2 3 4 5 下一頁(yè)

        關(guān)鍵詞:

        評(píng)論


        相關(guān)推薦

        技術(shù)專(zhuān)區(qū)

        關(guān)閉
        主站蜘蛛池模板: 黑水县| 军事| 元朗区| 婺源县| 运城市| 漠河县| 望谟县| 峡江县| 从化市| 佛坪县| 新平| 南皮县| 江阴市| 大渡口区| 合阳县| 扎囊县| 肇庆市| 绥阳县| 随州市| 岱山县| 石景山区| 岳普湖县| 高雄市| 资兴市| 鄂伦春自治旗| 嵊泗县| 庆安县| 西乡县| 台前县| 河北区| 古田县| 剑川县| 平陆县| 栖霞市| 镇原县| 友谊县| 枣阳市| 海丰县| 蓬溪县| 永仁县| 西乡县|