© 2023 EasyEDA Some rights reserved
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 30,000 devices or 100,000 pads
3.More rigorous design constraints, more standardized processes
4.For enterprises, more professional users
STD IIC LCD1602 Driver Display
// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011
#include
void setup() {
Serial.begin (115200);
// Leonardo: wait for serial port to connect
while (!Serial)
{
}
Serial.println ();
Serial.println ("I2C scanner. Scanning ...");
byte count = 0;
Wire.begin();
for (byte i = 8; i
![on the back][2]
To directly use this type of liquid crystal Arduino, it takes 6 pins: RS, EN, D7, D6, D5, D4, and LCD. If you are more than a simple project, you may be out of the use of the ordinary LCD shield pin. With this I2C interface LCD module, you only need 2 lines (I2C) to display information. If you already have I2C devices in your project, this LCD module is actually using no more pins.
Top to bottom:
GND - GND
VCC - +5V
SDA - communication Pin 20
SCL - communication pin 21
## Example Software code for 4 line 20 character Displays: ##
#include
#include
LiquidCrystal_I2C lcd(0x3F,16,2);
void setup()
{
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("Hello, body!");
delay(1000);
lcd.setCursor(0,1);
lcd.print("HI!EasyEDA.com");
delay(8000);
}
void loop()
{
}
[1]: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
[2]: /editor/20151208/5666cc630e1ef.JPGID | Name | Designator | Footprint | Quantity |
---|---|---|---|---|
1 | LCD1602 | X1 | LCD1602 | 1 |
2 | PCF8574ADGVR | U1 | TSSOP-20 | 1 |
3 | 1k | R1,R2,R3 | R3 | 3 |
4 | Arduino MEGA 2560 | U2 | DIP | 1 |
5 | 100k | R4 | TRIM_POT_PTH | 1 |
6 | 0.1u | C1 | C1 | 1 |
Unfold
Loading...
Do you need to add this project to the album?