用貴公司提供的打印程序做單片機系統(tǒng)用 ch375b驅(qū)動usb打印機hp1505n時打印特慢? 請問是什么原因?
uchar print_para_set[39]={0x1b,0x45, //復(fù)位 0x1b,0x26,0x6c,0x32,0x36,0x41, //A4 0x1b,0x2a,0x70,0x32,0x30,0x30,0x58,//左空白1英寸 0x1b,0x2a,0x70,0x31,0x35,0x30,0x59,//上空白1英寸 // 0x1b,0x2a,0x6c,0x31,0x4f, 0x1b,0x2a,0x72,0x31,0x41, //設(shè)置光柵圖象輸出位置 //0x1b,0x2a,0x62,0x30,0x4d, 0x1b,0x2a,0x76,0x34,0x54, 0x1b,0x2a,0x74,0x31,0x30,0x30,0x52};
uchar uc[8]={0x1b,0x2a,0x62,0x38,0x30,0x57};//第0種壓縮方式
傳送數(shù)據(jù):
for (i=0;i<240;i++) { send_data(8,uc); send_data(20,lcdrm0+(i<<7)); }