Blynk conflict with Liquid I2C

I'm working on a project that contains both the LiquidCrystal_I2C library AND the BlynkSimpleEsp8266 library.
The problem I'm having is that both libraries want to use 'lcd' The I2C library calls it in the line: LiquidCrystal_I2C lcd(0x27,16,2); and the Blynk Library in the line:
WidgetLCD lcd(V1); Hence the sketch won't load. I got around the problem by using a different widget. However I'm curious if anyone else has had the problem of the conflict using 'lcd' and how they solved it.
Thanks.
Jeff

That isn't a library conflict or library issue.
The library does not specify the object name; the sketch has full control over the name of the object and it can be anything.
Don't use the same name for both.
Just pick a different name for one of the objects and correct all the references to that object.

--- bill

HI Bill:
thanks for taking the time to reply. I DID change the name for the Blynk widget from lcd to LCD. The sketch compiles, connects to Blynk fine, but doesn't transmit data to the lcd widget. I've tried changing the name from lcd to screen. It compiles okay, with same result. I have the sketch working fine not using the lcd widget and using the gauge widget. I think the blynk app wants the call to the lcdwidget to be as defined in the blynk app itself.... It's no biggy, as I have the program running so I can use it. Just curious if there's a work around for the lcdwidget problem.
Jeff

We need to see the code to be able to make further recommendations.
--- bill

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.