全文预览

基于PSOC3的自动报时系统(时钟)

上传者:梦&殇 |  格式:docx  |  页数:28 |  大小:121KB

文档介绍
CD_Position(0,10);LCD_PrintNumber(min%10);LCD_Position(0,11);LCD_PrintString("-");LCD_Position(0,12);LCD_PrintNumber(sec/10); LCD_Position(0,13);LCD_PrintNumber(sec%10); LCD_Position(0,14);LCD_PrintString(""); LCD_Position(1,0);LCD_PrintString("Date:"); LCD_Position(1,5);LCD_PrintString(""); LCD_Position(1,6);LCD_PrintNumber(yea/1000);LCD_Position(1,7); LCD_PrintNumber((yea%1000)/100); LCD_Position(1,8); LCD_PrintNumber(((yea%1000)%100)/10); LCD_Position(1,9); LCD_PrintNumber(((yea%1000)%100)%10);LCD_PrintString("-");LCD_Position(1,11);LCD_PrintNumber(mon/10); LCD_Position(1,12);LCD_PrintNumber(mon%10);LCD_Position(1,13);LCD_PrintString("-"); LCD_Position(1,15);LCD_PrintString("");LCD_Position(1,14);LCD_PrintNumber(day/10); LCD_Position(1,15);LCD_PrintNumber(day%10); } if(mode0_flag==11) {

收藏

分享

举报
下载此文档