用贵公司提供的打印程序做单片机系统用 ch375b驱动usb打印机hp1505n时打印特慢? 请问是什么原因?
uchar print_para_set[39]={0x1b,0x45, //复位 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, //设置光栅图象输出位置 //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种压缩方式
传送数据:
for (i=0;i<240;i++) { send_data(8,uc); send_data(20,lcdrm0+(i<<7)); }