- 博客(2)
- 收藏
- 关注
原创 2021-05-23
矩阵按键控制步进电机转动:按数字键 1~9,控制电机转过 1~9 圈;配合上下键改变转动方向,按向上键后正向转 1~9 圈,向下键则反向转 1~9 圈;左键固定正转 90 度,右键固定反转 90;Esc 键终止转动#include <reg52.h>sbit KEY_IN_1 = P2^4;sbit KEY_IN_2 = P2^5;sbit KEY_IN_3 = P2^6;sbit KEY_IN_4 = P2^7;sbit KEY_OUT_1 = P2^3;sbit KEY_OUT
2021-05-23 17:24:59
72
原创 2021-05-23
简易加法计算器#include <reg52.h>sbit ADDR0 = P1^0;sbit ADDR1 = P1^1;sbit ADDR2 = P1^2;sbit ADDR3 = P1^3;sbit ENLED = P1^4;sbit KEY_IN_1 = P2^4;sbit KEY_IN_2 = P2^5;sbit KEY_IN_3 = P2^6;sbit KEY_IN_4 = P2^7;sbit KEY_OUT_1 = P2^3;sbit KEY_OUT_2 =
2021-05-23 03:12:04
298
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人