LCD Help

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello! I'm new to PSOC programming, but when I tried to upload the following code 

   

 #include <device.h>

   
        
   
    void main()   
   
    {   
   
     char outputstring[32];   
   
     LCD_Start();   
   
        /* Place your initialization/startup code here (e.g. MyInst_Start()) */   
   
        
   
        /* CYGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */   
   
        for(;;)   
   
        {   
   
     LCD_Position(1,0);   
   
     LCD_PrintString("Hello World");   
   
     LCD_Position(0,0);   
   
            /* Place your application code here. */   
   
        }   
   
    }   
   
        
   
        
   
    Nothing appears on the LCD. I'm using the CY8CKIT-050 development board   
0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

That might have to do with something else within the project. Will you please upload the project here.

   

To do so, in PSoC Creator: Build -> Clean Project

   

File -> Create Workspace Bundle(minimal)

   

and then upload the resulting .Zip-file here.

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Did you check that the LCD is assigned to Port 2 (P2[0]..P2[6])?

0 Likes
Anonymous
Not applicable

Hi daiengineering,

   

 

   

According to your code, "Hello World" should be printed in the second line of the LCD.

   

Please make sure that the LCD is fixed firmly in the allocated header.

   

As hli has already suggested, assign the port to P2[6..0] in Pins tab of cydwr.

0 Likes