johnrickman / LiquidCrystal_I2C

LiquidCrystal Arduino library for the DFRobot I2C LCD displays
583 stars 387 forks source link

LiquidCrystal_I2C lcd(0x27, 16, 2); causes an error on NodeMCU boards (and maybe others) #51

Open paulwrath1223 opened 3 years ago

paulwrath1223 commented 3 years ago

I'm new to github and arduino, but using _LiquidCrystalI2C lcd(0x27, 16, 2); causes an error on NodeMCU boards (and maybe others) but not on Mega 2560. The workaround is to replace it with _LiquidCrystalI2C lcd(0x27); and add lcd.begin(16,2); in setup. Maybe this is obvious, but it confused me a lot, and the error message was very unhelpful. ("Invalid Converson from ‘int’ to ‘t_backlighPol" [-fpermissive]")

jiangyi1985 commented 2 years ago

same here for rtlduino BW16 1.0 (RTL8720DM)