我是第一次使用nodemcu esp8266与液晶显示,我无法使它工作。它照亮了背景,但没有显示任何文本。
液晶显示地址: 0x27 sda: d4 sdl: d3 vnn: vin gnd: gnd
代码:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//Set LCD Address 0x27 for LCD1602 (16 chars 2 line display)
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// put your setup code here, to run once:
lcd.begin(0,2); // SDA-0 (GPIO D3 = 0), SCL-2 (GPIO D4 = 2)
lcd.backlight();
lcd.print("Hello world");
}
void loop() {
}发布于 2022-05-14 04:28:28
我把库从原来的https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library液晶显示可以显示文本。
https://stackoverflow.com/questions/72232919
复制相似问题