Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
code for sandbox of 8 LED
  • hello everyone again.. Here is the code for sandbox of 8 LED for microcontroller pic18

    #include<p18cxxx.h>
    unsigned char var, var1,var2,i,j;
    void main()
    {
    TRISD=0x00;
    var=0x00;
    i=0x08;
    while(1)
    {
    var2=0x00;
    j=i;
    for(i=8;i>0;i--)
    {
    var=var2;
    var1=0x01;
    for(j=i;j>0;j--)
    {
    var2=var+var1;
    LATD=var2;
    var1=var1<<1;
    }
    }
    }
    }