基于单片机的定时打铃设计 下载本文

西安文理学院本科毕业设计(论文)

write_com(0x80);

write_dSTCa(shi/16+0x30); write_dSTCa(shi+0x30); write_dSTCa('-');

write_dSTCa(fen/16+0x30); write_dSTCa(fen+0x30); write_dSTCa('-');

write_dSTCa(miao/16+0x30); write_dSTCa(miao+0x30); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa('W'); write_dSTCa('-'); write_dSTCa('<');

write_dSTCa(xingqi+0x30); write_dSTCa('>'); write_dSTCa(' ');

if(mode==1) {

write_com(0xc0); write_dSTCa('M'); write_dSTCa('o'); write_dSTCa('d'); write_dSTCa('e'); write_dSTCa(':'); write_dSTCa('A'); write_dSTCa('u'); write_dSTCa('t'); write_dSTCa('o'); write_dSTCa('m'); write_dSTCa('a'); write_dSTCa('t');

第44页

西安文理学院本科毕业设计(论文)

write_dSTCa('i'); write_dSTCa('o'); write_dSTCa('n'); write_dSTCa(' '); }

if(mode==2) {

write_com(0xc0); write_dSTCa('M'); write_dSTCa('o'); write_dSTCa('d'); write_dSTCa('e'); write_dSTCa(':'); write_dSTCa('O'); write_dSTCa('p'); write_dSTCa('e'); write_dSTCa('n'); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa(' '); write_dSTCa(' '); }

if(mode==3) {

write_com(0xc0); write_dSTCa('M'); write_dSTCa('o'); write_dSTCa('d'); write_dSTCa('e');

第45页