17.01.2015 Views

ThaiEasyElec - 2.8 inch TFT Touch Shield User ... - ThaiEasyElec.net

ThaiEasyElec - 2.8 inch TFT Touch Shield User ... - ThaiEasyElec.net

ThaiEasyElec - 2.8 inch TFT Touch Shield User ... - ThaiEasyElec.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void <strong>TFT</strong>_LCD::TSLCDCfgExtFont(const unsigned char *_font, unsigned char width, unsigned<br />

char height_div_8, unsigned char _tone_shift, unsigned char _font_ext_adj)<br />

โดยมี Arguments ต่างๆดังนี <br />

const unsigned char *_font ชือตัวแปร Fontทีต้องการใช้<br />

unsigned char width<br />

ความกว้างของ Font<br />

unsigned char height_div_8 ความสูงของ Font หารด้วย 8<br />

unsigned char _tone_shift กําหนดระยะห่างระหว่างตัวอักษรกับสระทีอยู ่ด้านบน<br />

unsigned char _font_ext_adj<br />

ใช้ปรับฐานของตัวอักษรไทย และ อังกฤษ ให้สมดุลกัน<br />

ตัวอย่างการใช้งาน<br />

lcd.TSLCDCfgExtFont(font_angsana14x32,14,4,5,11); //กําหนดใช้ Font ชือ font_angsana14x32 มีความ<br />

กว้าง 14 Pixel สูง 32หารด้วย 8 Pixel แสดงผลสระตัวบนห่างจากตัวอักษร 5 Pixel ปรับชดเชยสมดุลของตัวอักษรไทย<br />

และอังกฤษ 11 Pixel<br />

ฟังก์ชั น แสดงข้อความเป็ นบรรทัด<br />

void <strong>TFT</strong>_LCD::TSLCDPrintString(unsigned char line,unsigned char column,char *str)<br />

โดยมี Arguments ต่างๆดังนี <br />

unsigned char line กําหนดบรรทัดทีต้องการแสดงข้อความ<br />

unsigned char column กําหนดคอลัมเริมต้นทีต้องการแสดงข้อความ<br />

char *str ข้อความทีต้องการแสดง<br />

11 <strong>ThaiEasyElec</strong> - <strong>2.8</strong> <strong>inch</strong> <strong>TFT</strong> <strong>Touch</strong> <strong>Shield</strong> user manual V1.0| Venus Supply Co.,ltd - Contact : Sales@thaieasyelec.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!