Tsev > Xov xwm > Ntsiab lus

CMD-NUMBER - Kos A Zauv Pes Tsawg

Apr 27, 2019

image

C daim ntawv prototype

tsis muaj dabtsis cmd_number (int16_t x,

int16_t y,

int16_t font,

uint16_t xaiv,

int32_t n);

Cov lus qhia

x

x-kab ke ntawm cov ntaub ntawv pib, hauv pixels

y

y-coordinate ntawm cov ntaub ntawv paus, hauv pixels

font

font siv rau cov ntawv nyeem, 0-31. Saib ROM thiab RAM Fonts

kev xaiv

Los ntawm kev ua neej (x, y) yog sab saum toj-pixel ntawm cov ntawv nyeem. OPT_CENTERX cov chaw zov me nyuam

ntawv horizontally, OPT_CENTERY cov chaw nws vertically. OPT_CENTER cov chaw zov me nyuam

ntawv nyob rau hauv ob qho tag nrho cov lus qhia. OPT_RIGHTX txoj cai-justifies cov ntawv nyeem, yog li x tias

tus rightmost pixel. Yog vim li cas tus naj npawb yog muaj tshwm sim nrog tsis muaj tus coj

zeroes, tab sis yog hais tias qhov dav 1-9 teev nyob rau hauv cov kev xaiv, ces tus xov tooj yog

padded yog tias tsim nyog uas pib zeroes kom nws muaj qhov dav dav. Yog tias

OPT_SIGNED raug muab, tus naj npawb raug kho raws li tau suam npe, thiab sau ua ntej los ntawm

kos npe tawm yog tias tsis zoo.

n

Tus naj npawb los tso saib, txawm tias tsis kos npe lossis kos npe 32-ntsis

image

image

image

CMD_LOADIDENTI-Y - Teem teeb tsa tam sim no rau qhov matrix yog qhov no

hais kom ua instructs lub tshuab pa nruab nrab ntawm FT800 kom teem caij ziag no

mus rau tus kheej matrix, thiaj li hais tias lub tshuab pa roj carbon monoxide yuav tau ua tus tshiab matrix

raws li tau thov los ntawm CMD_SCALE, CMD_ROTATE, CMD_TRANSLATE hais kom ua. Rau

xav paub ntau ntxiv txog ntawm qhov keebkwm, thov saib Bitmap transformation matrix

seem.

image