{4Y7@_EPO)37H1X@$E8JZ8W.png
    才写了一点明天补起

    1. temp=0xfe;
    2. while(1)
    3. {
    4. for(num1=0;num1<3;num1++)
    5. {
    6. for(num=0;num<8;num++)
    7. {
    8. P1=temp;
    9. beep=0;
    10. delay(100);
    11. temp=_crol_(temp,1);
    12. P1=0xff;
    13. beep=1;
    14. delay(100);
    15. }
    16. }

    for(num1=0;num1<3;num1++)
    {
    for(num=0;num<8;num++)
    {
    P1=temp;
    beep=0;
    delay(100);
    temp=cror(temp,1);
    P1=0xff;
    beep=1;
    delay(100);
    }
    }
    while(1);
    }
    }

    void delay(uint z)
    {
    uint x,y;
    for(x=z;x>0;x—)