Difference between revisions of "Crowtail- I2C LCD"
Jump to navigation
Jump to search
(Created page with "== Description == A new crowtail for LCD1602, it contains LCD1602 and MCP23008 module. Unique interface for crowtail. Provide convenience to work with a LCD. '''Model: [htt...") |
(No difference)
|
Latest revision as of 05:29, 22 August 2019
Contents
Description
A new crowtail for LCD1602, it contains LCD1602 and MCP23008 module. Unique interface for crowtail. Provide convenience to work with a LCD.
Model: CT0046LCD
Features
- Easy to use
- Voltage:3v-5v
- Crowtail compatible interface
- Dimensions(mm):80.0(L)x36.0(W)x17.8(H)
Usage
1.Hardware connection
Connect the Crowtail- I2C LCD to I port.
2.Connect the board to PC using USB cable.
3.Download the library;Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0.1\libraries.
4.Open the code directly by the path:File -> Example ->Liquid Crystal->HelloWorld.
#include <Wire.h> #include "LiquidCrystal.h" // Connect via i2c, default address #0 (A0-A2 not jumpered) LiquidCrystal lcd(0); void setup() { // set up the LCD's number of rows and columns: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("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: lcd.print(millis()/1000); lcd.setBacklight(HIGH); delay(1000); lcd.setBacklight(LOW); delay(1000); }
5.Upload the Code,you shoule see the display of LCD1602.