Tsev > Xov xwm > Ntsiab lus

Co-processor Thaj Tsam Ntawm Cov Ntawv Sau

Apr 26, 2019

Feem ntau cov tshuab hluav taws xob tshuab pa sau ntawv sau rau daim ntawv teev npe tam sim no. Sau ntawv tam sim no

qhov chaw nyob hauv daim ntawv sau qhia yog nyob rau hauv REG_CMD_DL. Thaum twg lub tshuab pa roj carbon monoxide

sau ib lo lus rau daim ntawv sau, nws ua li ntawm REG_CMD_DL ces increments

REG_CMD_DL. Qhov tshwj xeeb hais kom ua CMD_DLSTART teev REG_CMD_DL rau xoom, rau qhov

pib ntawm daim ntawv teev cov npe tshiab.

Txhua daim ntawv teev cov lus sau yuav sau ua cov tshuab pa hluav taws xob. Lub tshuab coprocessor luam cov lus txib rau hauv daim ntawv teev cov npe tam sim no ntawm REG_CMD_DL.

Piv txwv li, qhov kev sib tw ntawm cov tshuab ua haujlwm cav tau sau ib daim ntawv teev me me:

cmd (CMD_DLSTART); // pib ib cov ntawv teev tshiab

cmd (CLEAR_COLOR_RGB (255, 100, 100)); // set ntshiab xim

cmd (CLEAR (1, 1, 1)); / / ntshiab npo

cmd (COV LUS () (); // zaub

Tau kawg, daim ntawv tso npe no tau muab sau ncaj qha rau RAM_DL. Qhov zoo ntawm

cov txheej txheem no yog tias koj tuaj yeem sib xyaw cov haujlwm qis thiab qib siab ua haujlwm

cav commands nyob rau hauv ib zaug xwb dej:

cmd (CMD_DLSTART); // pib ib cov ntawv teev tshiab

cmd (CLEAR_COLOR_RGB (255, 100, 100)); // set ntshiab xim

cmd (CLEAR (1, 1, 1)); / / ntshiab npo

cmd_button (20, 20, // x, y

60, 60, // dav, qhov siab hauv pixels

30, // font 30

0, // default options

"OK!");

cmd (COV LUS () (); // zaub