標(biāo)題: 基于自學(xué)stm32板子寫的萬(wàn)年歷時(shí)鐘源碼 [打印本頁(yè)]

作者: 淡淡的高中生    時(shí)間: 2018-4-3 17:25
標(biāo)題: 基于自學(xué)stm32板子寫的萬(wàn)年歷時(shí)鐘源碼


單片機(jī)源程序如下:
  1. #include "stm32f10x.h"
  2. #include "led.h"
  3. #include "timer.h"
  4. #include "key.h"
  5. #include "usart.h"
  6. #include "lcd.h"
  7. #include "calendar.h"
  8. #include "clock.h"
  9. #include "main.h"
  10. #include "dht11.h"
  11. #include "display.h"


  12. u8 key_on;
  13. extern u8 shi_sn,shi_gn,fen_sn,fen_gn,miao_sn,miao_gn;
  14. extern u16 year_li,month_li,day_li,week_li;

  15. void main()
  16. {   
  17.     year = 2017;
  18.     month = 12;
  19.     day = 9;
  20.     year_li = year;
  21.     month_li = month;
  22.     day_li = 1;         //第一天
  23.    
  24.     shi = 13;
  25.     fen = 30;
  26.     miao = 30;
  27.    
  28.     nshi = 0;
  29.     nfen = 0;
  30.     nmiao = 0;
  31.     key_on = 0;
  32.     Init_All();           //所有初始化函數(shù)            
  33.     display_start();    //顯示開始畫面
  34.    
  35.     while(1)
  36.     {  
  37.        printf("213132\n");
  38.         
  39.       }
  40. }
復(fù)制代碼

所有資料51hei提供下載:
基于STM32的萬(wàn)年歷時(shí)鐘 -.zip (465.41 KB, 下載次數(shù): 78)



作者: 1243449743    時(shí)間: 2018-4-25 21:06
為什么沒有project文件?
作者: c時(shí)光    時(shí)間: 2018-7-3 15:47
請(qǐng)問(wèn)這個(gè)萬(wàn)年歷是基于stm32f103rc制作的嗎?
作者: 我叫小大打    時(shí)間: 2020-3-10 11:33
假的









。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1