Grove - LCD
This project will display text on a Grove LCD.
- Connect a Grove LCD to an I2C grove connector on your board.
- Begin a new Grove project using the Grove Project Import method at the bottom of this page.
- In the Project Explorer on the left, under Sources, double click to open the file "arduinoApp.cpp".
- Copy and paste the following code into this file to replace it's contents:
#include "../lib/Grove/rgb_lcd.h"
rgb_lcd lcd; const int colorR = 255; void setup() lcd.setRGB(colorR, colorG, colorB); // Print a message to the LCD. delay(1000); void loop() delay(100); |
- This code will make the background color RED, display a text message on line one, then continually display a second counter on line 2.
- Select Project from the main menu and choose Build Project.
- If there are any errors they will be displayed in the Problems tab.
Now follow the steps under Debugging your ARM Board Project.