单片机程序之三.数码管显示0-9自检
这个学习板的数码管是用P0显示笔划.P2选通每个字的#include#include unsigned char data dis_digit;unsigned char code dis_code[11] = {0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF}; //共...
基于51单片机数码管的代码例子
#include#include#define uchar unsigned char#define uint unsigned intsbit dula=P2^6;sbit wela=P2^7;uchar code table[]={ //编码表 code为把程序放入ROM区0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0...
AVR单片机学习(五)按键与数码管的程序设计