Go Down

Topic: Arduino leonardo and grove lcd backlight (Read 40 times) previous topic - next topic



I'm using grove lcd rgb backlight v3.0 connected to the I2C of the grove base shield with my arduino leonardo board.
I uploaded the following program:


#include <Wire.h>
#include "rgb_lcd.h"

rgb_lcd lcd;

const int colorR = 50;
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.println("hello, world!");


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:



The results only displayed the red backlight but ' hello world ' is not displayed.
Anyone knows why? Thanks.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131