void led_display(void)
{
const uchar smg[]={0x0a,0xfa,0x8c,0xa8,0x78,0x29,0x09,0xba,0x08,0x28,0x00,};
// 0 1 2 3 4 5 6 7 8 9 all
const uchar smg_bit[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0xff,};
static uchar st=0;
RC4=0;
spi_write_read(smg_bit[st]);
spi_write_read(smg[disbuf[st]]);
RC4=1;
st=(++st)%8;
}
|