标题: STM32F103ZET6 OLED显示时间源程序 32X16大字体 [打印本页]

作者: xtjcmmf    时间: 2022-12-1 21:15
标题: STM32F103ZET6 OLED显示时间源程序 32X16大字体
STM32F103ZET6显示时间
有32X16大字体显示

OLED_ShowChar(48,48,t,16,0);//显示ASCII字符           
                OLED_Refresh_Gram();
                t++;
                if(t>'~')t=' ';
                OLED_ShowNum(102,48,t,3,16);//显示ASCII字符的码值
                delay_ms(500);  
                LED0=!LED0;  
               
                if(t1!=calendar.sec)
                {
                        t1=calendar.sec;
                        OLED_ShowNum(0,0,calendar.w_year,4,16);                                                                          
                        OLED_ShowNum(52,0,calendar.w_month,2,16);                                                                          
                        OLED_ShowNum(82,0,calendar.w_date,2,16);         
                        switch(calendar.week)

1.jpg (201.63 KB, 下载次数: 59)

1.jpg

OLED显示时间 32X16 time OK.7z

216.78 KB, 下载次数: 28, 下载积分: 黑币 -5

STM32 OLED






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1