6 Replies Latest reply on Jun 17, 2015 5:58 AM by Abinaya

    Intel Edison LCD-RGB backlight problem

    Abinaya

      I'm using Grove LCD_RGB backlight with Arduino 1.5.3 intel 1.4.0

      when run the following program


      #include <Wire.h>

      #include "rgb_lcd.h"

       

      rgb_lcd lcd;

       

      void setup()

      {

          // set up the LCD's number of columns and rows:

          lcd.begin(16, 2);

       

       

          // Print a message to the LCD.

          lcd.print("hello, world!");

         

          delay(1000);

      }

       

      void loop()

      {

          // Turn off the blinking cursor:

          lcd.noBlink();

          delay(3000);

          // Turn on the blinking cursor:

          lcd.blink();

          delay(3000);

      }

       

      It's shows the following error

       

       

      Blink.ino:28:1: error: 'rgb_lcd' does not name a type

      Blink.ino: In function 'void setup()':

      Blink.ino:34:5: error: 'lcd' was not declared in this scope

      Blink.ino: In function 'void loop()':

      Blink.ino:45:5: error: 'lcd' was not declared in this scope

       

       

      And for hello world program

       

      #include <Wire.h>

      #include "rgb_lcd.h"

       

      rgb_lcd lcd;

       

      const int colorR = 255;

      const int colorG = 0;

      const int colorB = 0;

       

      void setup()

      {

          // set up the LCD's number of columns and rows:

          lcd.begin(16, 2);

         

          lcd.setRGB(colorR, colorG, colorB);

         

          // Print a message to the LCD.

          lcd.print("hello, world!");

       

          delay(1000);

      }

       

      void loop()

      {

          // set the cursor to column 0, line 1

          // (note: line 1 is the second row, since counting begins with 0):

          lcd.setCursor(0, 1);

          // print the number of seconds since reset:

          lcd.print(millis()/1000);

       

          delay(100);

      }

      It also show the same error as follows

       

      HelloWorld.ino:28:1: error: 'rgb_lcd' does not name a type

      HelloWorld.ino: In function 'void setup()':

      HelloWorld.ino:37:5: error: 'lcd' was not declared in this scope

      HelloWorld.ino: In function 'void loop()':

      HelloWorld.ino:51:5: error: 'lcd' was not declared in this scope




      Is there any problem in declaration or library function???

      Please help me friends...