Attributes | Parameter value |
---|---|
Product catalogue | Interface - I/O Expander |
Installation type | surface mount type |
Operating Voltage | 2.5V ~ 6V |
Number of I/Os | 8 |
characteristic | POR |
interface | I²C |
Interrupt output | yes |
Clock frequency | 100kHz |
Output type | push-pull |
Sink/source current output | 300uA, 25mA |
Operating temperature | -40℃ ~ +85℃ |
I2C control module | Arduino |
---|---|
SCl | A5 |
SDA | A4 |
VCC | 5V |
GND | GND |
#include
#include
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //0x27换成你的I2C地址,通过短接A0A1A2更换I2C地址
void setup()
{
lcd.begin(16,2); //1602LCD屏幕
lcd.backlight();//开启背光
//lcd.backlight(); //关闭背光
}
void loop()
{
lcd.setCursor(0,0); //设置光标位置第一行第一列是0,0
lcd.print("Hello World"); //能打印16个英文字母等(进阶玩法请自己搜索)
delay(100);
lcd.setCursor(0,1);
lcd.print("I am Scarrrr0725");
delay(1000);
lcd.clear();//清除内容
}
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet