智能终端,单片机编程发送字符子程序实例
来源:网络 作者:网络转载 2019-10-08 阅读:989
uchar hanzi[]={"安an徽hui世龙电子"};void write_word(uint fcolor,uint bcolor,uint x,uint y,uchar *neima){uchar i; txd(0x1b);txd(0x23);txd(fcolor);txd(fcolor>>8);txd(0);txd(0);txd(bcolor);txd(bcolor>>8); txd(x);txd(x>>8);txd(y);txd(y>>8);txd(0x01);txd(0x80);for(i=0;i<17;i++) {txd(*neima++);} txd(0xff);txd(0xff);txd(0xee);txd(0xff); }