
嵌入式
MNSmile
哈喽
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数码管动态显示
/**********************************第一个数码管显示1,时间为500ms?第二个数码管显示2,时间为500ms......中文可能有乱码现象***********************************/#include <reg52.h>#define uchar unsigned char#define uint unsigned intu...原创 2018-03-22 21:34:09 · 2852 阅读 · 0 评论 -
数码管依次显示0-f
/**********************************数码管依次显示0-f 持续**********************************/#include <reg52.h>#define uchar unsigned char#define uint unsigned intsbit dula=P2^6;sbit wela=P2^7;uchar num,n...原创 2018-03-23 10:37:14 · 18141 阅读 · 2 评论 -
数码管显示756453,一直减到756398
/*****************************数码管显示756453,一直减到756398*****************************/#include<reg52.h> #define uchar unsigned char #define uint unsigned intsbit dula=P2^6;sbit wela=P2^7;uchar cod...原创 2018-03-23 17:44:28 · 293 阅读 · 0 评论 -
实验板上电时,数码管不显示,顺序按下矩阵键盘后,在数码管上依次显示0-f,6个数码管同时静态显示。
#include <reg52.h>#define uchar unsigned char#define uint unsigned intuchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};sbit dula=P2^6;sbit wel...翻译 2018-03-24 21:49:21 · 5539 阅读 · 2 评论