I2C
Last updated
Last updated
LinkIt 7697 supports I2C through the Wire library. Most I2C devices that have drivers based on Wire library should work without problems. You can find a list of compatible devices, along with their drivers and example sketches in this repo. The I2C data and clock pins are already pulled up by the board, so it's unnecessary to add extra pull-up circuits.
Connect the VCC port to 5V pin of LinkIt 7697 since the LCD module requires a 5V power source.
Connect SDA pin of the module to P9 (GPIO28/I2C1_DATA) pin of LinkIt 7697.
Connect SCL pin of the module to P8 (GPIO27/I2C1_CLK) pin of LinkIt 7697.
Download the driver library from its wiki page or direct link. The downloaded library is a zip file named Grove_LCD_RGB_Backlight-master.zip.
Choose Sketch > Include Library > Add .ZIP library... from the IDE menu, and then select the zip file Grove_LCD_RGB_Backlight-master.zip.
After adding the library, open the menu item File > Examples > Grove_RGB_LCD_Backlight-master > Helloworld.
Upload the example sketch. Once uploaded, the LCD module should light up and shows "hello, world!" message, along with an increasing counter.
The diagram below shows how to connect the board to the LCD module. The graphics of the LCD module came from the Johnny-five project repository here.