I am total newbie in Arduino and for the last 3 days I am trying to figure this out.
I would like to use an I2C display for a project. I have installed the LiquidCrystal_I2C, but when I try to upload it I get this wire.h
missing message.
Could anyone please help me to understand and fix this?
1 Answer 1
That library is special. It expects to be placed in the same location as the Wire library. You need to find the location of the Wire library and place this library alongside it. So you have:
.../Wire/Wire.cpp
.../Wire/Wire.h
.../LiquidCrystal_I2C/LiquidCrystal_I2C.cpp
.../LiquidCrystal_I2C/LiquidCrystal_I2C.h
etc
-
Thank you for the reply. I seems I have two copies of wire.cpp and wire.h in two different locations. Attached is a screenshot of their locations with respect to the LiquidCrystal_I2C.h and LiquidCrystal_I2C.cpp - is this the problem? Screenshot: i.imgur.com/n7m8UTR.pngsaicode– saicode2019年03月14日 18:15:58 +00:00Commented Mar 14, 2019 at 18:15
-
Just pick one. If they're all the same then it won't matter which.Majenko– Majenko2019年03月14日 19:44:27 +00:00Commented Mar 14, 2019 at 19:44
-
how can I pick one? (sorry if it's a stupid question)saicode– saicode2019年03月15日 06:14:53 +00:00Commented Mar 15, 2019 at 6:14
help me to understand
...... too many people only want finished code