6 Replies Latest reply on Nov 28, 2017 1:32 AM by ichirou.tokuda_1583401

    "I2C_LCD_1 _ SetContrast (50);" Function not found

    ichirou.tokuda_1583401

      Hi.All

       

      I want to use I2C_LCD with PSoC4 CY8CKIT-049 Prototyping Kit.

      In "I2C_LCD.C" or "I2C_LCD.h" of "PSoC CREATER 4.1"
      "I2C_LCD_1 _ SetContrast (50);" Function not found.

      I coded the following samples.

      #include <device.h>
      #define LCD_MODULE_ADDRESS (0x50u)

      int main (void)
      {
          CyGlobalIntEnable;
          I2C_Start ();
          I2C_LCD_Start ();
          I2C_LCD_SetContrast (50);
          CyDelay (1000 u);
          I2C_LCD_Position (0 u, 19 u);
          I2C_LCD_PrintString ("s");
          I2C_LCD_Position (0 u, 0 u);
          I2C_LCD_PrintString ("a");
          I2C_LCD_WriteControl (I2C_LCD_CURSOR_WINK);
         
         
          I2C_LCD_Position (1 u, 0 u);
          I2C_LCD_PrintString ("Cypress");
          I2C_LCD_PrintString ("Cypress");
          I2C_LCD_WriteControl (I2C_LCD_CURSOR_WINK);
          I2C_LCD_PrintNumber (2015);
          I2C_LCD_PrintNumber (015);
          I2C_LCD_Position (3u, 10u);
          I2C_LCD_PutChar ('$');
         
      }

      please tell me.