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

標題: STM32矩陣鍵盤密碼鎖源程序 [打印本頁]

作者: wqe561    時間: 2018-9-10 13:17
標題: STM32矩陣鍵盤密碼鎖源程序
使用STM32制作一個矩陣鍵盤密碼鎖,源碼附上,菜雞一個,大家一起交流。

單片機源程序如下:
  1. /******************************************
  2. ***程序:簡易矩陣鍵盤密碼鎖********************
  3. *******************************************                               _oo0oo_
  4. **        連接方式:        *****************************                       o8888888o
  5. *******************************************                       88" . "88
  6. **************        PA0--IN1                ***************                              (| -_- |)
  7. **************        PA1--IN2                ***************                              0\  =  /0
  8. **************        PA2--IN3                ***************                     ___/`---'\___
  9. **************        PA3--IN4                ***************                          .' \\|     |// '.
  10. **************        PA4--IN5                ***************                         / \\|||  :  |||// \
  11. **************        PA5--IN6                ***************                        / _||||| -:- |||||- \
  12. **************        PA6--IN7                ***************                 |   | \\\  -  /// |   |
  13. **************        PA7--IN8          ***************                 | \_|  ''\---/''  |_/ |
  14. *******************************************                 \  .-\__  '-'  ___/-. /
  15. *******************************************               ___'. .'  /--.--\  `. .'___
  16. *******************************************           ."" '<  `.___\_<|>_/___.' >' "".
  17. *******************************************          | | :  `- \`.;`\ _ /`;.`/ - ` : | |
  18. *******************************************           \  \ `_.   \_ __\ /__ _/   .-` /  /
  19. *******************************************       =====`-.____`.___ \_____/___.-`___.-'=====
  20. *******************************************                         `=---='
  21. *******************************************       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. *******************************************      
  23. **PA0-3口配置成推挽輸出  作為4x4鍵盤的行*******                  佛祖保佑         永無BUG
  24. **PA4-7口配置成上拉輸入  作為4x4鍵盤的列*******
  25. *******************************************
  26. ******************************************/


  27. #include "led.h"
  28. #include "delay.h"
  29. #include "key.h"
  30. #include "sys.h"
  31. #include "beep.h"
  32. #include "usart.h"
  33. #include "string.h"
  34. #include "timer.h"
  35. #include "LOCK.h"


  36. int main(void)
  37. {
  38.         delay_init();                     
  39.         LED_Init();                             
  40.         KEY_Init();
  41.         uart_init(9600);
  42.         NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
  43.         TIM3_Int_Init(4999,7199);
  44.        
  45.         printf("\n請輸入\n");
  46.         while(1)
  47.         {  
  48.                 LOCK();
  49.         }
  50. }         
復制代碼

所有資料51hei提供下載:
JuZhengKey.rar (290.52 KB, 下載次數: 94)



作者: admin    時間: 2018-9-10 16:56
補全原理圖或者詳細說明一下電路連接即可獲得100+黑幣
作者: wqe561    時間: 2018-9-10 20:11
admin 發表于 2018-9-10 16:56
補全原理圖或者詳細說明一下電路連接即可獲得100+黑幣

稍后整理附上





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