C51_LED点阵屏

 

 

void _74HC595_WriteByte(unsigned int Byte)
{
    SER=Byte&0x80;
    SCK=1;
    SCK=0;
    SER=Byte&0x40;
    SCK=1;
    SCK=0;
    SER=Byte&0x20;
    SCK=1;
    SCK=0;
    SER=Byte&0x10;
    SCK=1;
    SCK=0;
    SER=Byte&0x08;
    SCK=1;
    SCK=0;
    SER=Byte&0x04;
    SCK=1;
    SCK=0;
    SER=Byte&0x02;
    SCK=1;
    SCK=0;
    SER=Byte&0x01;
    SCK=1;
    SCK=0;
    
}

 

posted @ 2023-03-27 21:06  鬼幽电z  阅读(10)  评论(0编辑  收藏  举报