欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: STM32數碼管動態掃描Proteus仿真代碼 [打印本頁]

作者: gxl123    時間: 2021-4-27 21:23
標題: STM32數碼管動態掃描Proteus仿真代碼
基于STM32實現數碼管動態掃描實測可用


單片機源程序如下:
  1. #include "stm32f10x.h"
  2. #include "smg.h"
  3. #include "Delay.h"
  4. uint16_t table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
  5. uint16_t wei[]={0x0fe,0x0fd,0x0fb,0x0f7,0x0ef,0x0df,0xff,0xff};
  6. uint8_t i;
  7. int main(void)
  8. {
  9. SMG_Init();
  10. while(1)
  11. {
  12.   for(i=1;i<7;i++)
  13.    {
  14.     GPIO_Write(GPIOB,wei[i-1]);
  15.     GPIO_Write(GPIOC,table[i]);
  16.     Delay(20);
  17.     GPIO_Write(GPIOB,0x0ff);
  18.     Delay(20);
  19.    }
  20. }
  21. }
復制代碼

所有資料51hei提供下載:
數碼管動態掃描.zip (10.05 MB, 下載次數: 71)







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