#include"functions.h"
void p1(void);
void p2(void);
void p3(void);
void p4(void);
void p5(void);
void p6(void);
void p7(void);
void p8(void);
void p9(void);
void p10(void);
void setup()
{
init_port();
display_A();
//display_B();
//display_1();
//display_2();
//display_a();
//display_q();
//display_dollar();
//display_hash();
//display_alpha();
//display_omega();
}
void display_A()
{
while(1)
{
char i,k[8] = {0xff,0xc0,0x80,0x33,0x33,0x80,0xc0,0xff};
for(i=0;i<8;i++)
{
//outf(0x00); outk(0xff);
outf(0x80>>i); outk(k[i]); //delay1(500);
outf(0x00); outk(0xff);
}
}
}
void display_B()
{
while(1)
{
char i,k[8] = {0x81,0x00,0x24,0x24,0x24,0x00,0x99,0xff};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]); //delay1(500);
outf(0x00); outk(0xff);
}
}
}
void display_1()
{
while(1)
{
char i,k[8] = {0x03,0x33,0x63,0xff,0xff,0x03,0x03,0x03};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(~k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_2()/**/
{
while(1)
{
char i,k[8] = {0xff,0x20,0x20,0x24,0x24,0x04,0x40,0xff};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_a()/**/
{
while(1)
{
char i,k[8] = {0xdb,0xb5,0x6e,0x6e,0x6e,0x6e,0xad,0xc0};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_q()/**/
{
while(1)
{
char i,k[8] = {0x8f,0x07,0x27,0x03,0x83,0xf1,0x80,0x80};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_dollar()
{
while(1)
{
char i,k[8] = {0xff,0x84,0xb6,0x00,0x00,0xb6,0x90,0xff};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_hash()
{
while(1)
{
char i,k[8] = {0x99,0x00,0x00,0x99,0x99,0x00,0x00,0x99};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_alpha()
{
while(1)
{
char i,k[8] = {0xe7,0xdb,0xdb,0xdb,0xe7,0xdb,0xbd,0x7e};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void display_omega()
{
while(1)
{
char i,k[8] = {0xfb,0xfb,0xe7,0xdf,0xdf,0xe7,0xfb,0xfb};
for(i=0;i<8;i++)
{
outf(0x80>>i); outk(k[i]);
outf(0x00); outk(0xff);
}
}
}
void loop()
{
}