#include <reg51.h>
/*
0xc0 0xf9
*/
#define uchar unsigned char
uint i,j;
#define uint unsigned int
uchar code seg[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void delay(uint ms)
{
uint i,j;
for(i=ms;i>0;i--)
for(j=120;j>0;j--)
}
void nixie_show()
{
uchar i;
for(i=0;i<10;i++)
{
P2=seg[i];
delay(300);
}
}
void main()
{
while(1)
{
nixie_show();
}
}