-->
Page 1 of 1

Error uploading ths code

PostPosted: Thu Apr 02, 2020 7:30 am
by EB57
Heelo.
I am relatively new to the world of ESP8266.
I coped a code from the internet, opened it in Arduino IDE, tried to send it to the board, but, get an error message:.
invalid conversion from 'int' to 't.backlight.Pol' {-fpermissive}

The code is here
*
* NodeMCU I2C 16x2 LCD
* Created by TheCircuit
*/

#include <Wire.h> // This library is already built in to the Arduino IDE
#include <LiquidCrystal_I2C.h> //This library you can add via Include Library > Manage Library >
LiquidCrystal_I2C lcd(0x3F, 16, 2);

void setup()
{
Wire.begin(2,0);
lcd.init(); // initializing the LCD
lcd.backlight(); // Enable or Turn On the backlight
lcd.print(" Hello Makers "); // Start Printing
}

void loop()
{
// Nothing Absolutely Nothing!
}

Any ideas? The same code loads into my Nano clone, no problems.
Many thanks in advance