一、原理图
二、程序
#include
#define uchar unsigned char
uchar code SEG[1]={0x78};
void main(void)
{
while(1)
{
P1=SEG[0];
}
}
三、原理图
四、程序
#include
#define uchar unsigned char
uchar code SEG[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void main(void)
{
while(1)
{
P1=SEG[0];
}