cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

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
Reply
3 Replies
JoMe_264151
Expert II

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
Reply
HeLi_263931
Honored Contributor II

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

0 Likes
Reply
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
Reply