Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by jacalekkap ( 14 years ago )
{int a;
int wiersz;
DDRC = 0x07;
int tab[8][40]={
{1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,1,1,0,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,1,1,0,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,1,1,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,1,1,1,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0}
}
for(a=0; a<40; a++)
{
for (int linia=0;linia<8;linia++)
{
if(tab[linia][a]==1) DS_H;
else DS_L;
if (linia==0) wiersz =0b00000000;
if (linia==1) wiersz =0b00000001;
if (linia==2) wiersz =0b00000010;
if (linia==3) wiersz =0b00000011;
if (linia==4) wiersz =0b00000100;
if (linia==5) wiersz =0b00000101;
if (linia==6) wiersz =0b00000110;
else
{
wiersz =0b00000111;
linia=0;
}
PORTC=wiersz;
STCP_L;
STCP_H;
}
if (a==39) a=0;
SHCP_L;
SHCP_H;
}
}
Revise this Paste