首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
p3.0专题
【无标题】制作一个0-99的计数器,P1.7接按键,P2接数码管段,共阳极数码管,P3.0,P3.1接数码管位码,每按一次键,数码管显示加一。请写出单片机的C51代码
制作一个0-99的计数器,P1.7接按键,P2接数码管段,共阳极数码管,P3.0,P3.1接数码管位码,每按一次键,数码管显示加一。请写出单片机的C51代码 #include "reg51.h"#include "stdio.h"sbit in1 = P1^7;sbit lse1 = P3^0;sbit lse2 = P3^1;typedef unsigned int u16;unsig
阅读更多...