static const uint8_t SDA = 4;static const uint8_t SCL = 5;static const uint8_t LED_BUILTIN = 16;static const uint8_t BUILTIN_LED = 16;static const uint8_t D0 = 16;static const uint8_t D1 = 5;static const uint8_t D2 = 4;static const uint8_t D3 = 0;static const uint8_t D4 = 2;static const uint8_t D5 = 14;static const uint8_t D6 = 12;static const uint8_t D7 = 13;static const uint8_t D8 = 15;static const uint8_t D9 = 3;static const uint8_t D10 = 1;
#include <Wire.h> #include <LiquidCrystal_I2C.h>LiquidCrystal_I2C lcd(0x27,16,2); /* 0x27 for PCF8574 and 0x3F for PCF8574A */void setup(){ lcd.init(); lcd.backlight(); lcd.setCursor(2,0); lcd.print("Hello, world!"); lcd.setCursor(4,1); lcd.print("NodeMCU Lab");}void loop(){}