×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Member #395518

Member Since: January 5, 2013

Country: United States

  • He said that an engineer who made it wrote a very quick guide to how to use it, Can I have the Link ?

  • I’m using MPLAB with CCS C Compiler . I used this LCD , but I don’t know the code which clear the screen . this is the Code :

    #include
    #fuses HS, NOWDT , NOPROTECT , NOLVP 
    #use delay(clock = 8000000)
    #use rs232(baud = 9600 , xmit = PIN_C6 , rcv =PIN_C7)
    void main()
    {
            int1  x; 
            while(TRUE)
            {
                    x = input(PIN_A0);
                    if(x == 0 )
                    {
                            printf("The Port A is 0 ");
                            output_BIT(PIN_B0,0);
                            output_BIT(PIN_B1,0);
                            delay_ms(1000);
                            output_BIT(PIN_B0,1);
                            output_BIT(PIN_B1,1);
                            delay_ms(1000);
                    }
                    else
                    {
                            printf("The Port A is one");
                            output_BIT(PIN_B0,0);
                            output_BIT(PIN_B1,1);
                            delay_ms(1000);
                            output_BIT(PIN_B0,1);
                            output_BIT(PIN_B1,0);
                            delay_ms(1000);
                    }
    
            }
    }
    

No public wish lists :(