Hello,
I purchased an I2C backpack for an lcd (and also a 16x2 lcd).
I have written all the code of a program to control the access on a room and I found out that if the arduino starts without access to the lcd (the comm cable is broken) it stucks the execution at the instruction lcd.begin and does not continue anymore.
If the lcd is present everything works fine, so I discard a mistake within my code, may it be some issue with the liquidTWI library??
Have any of you experienced anything like this??
Thanks!!
LIQUID TWI LIBRARY AND I2C LCD BACKPACK
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: LIQUID TWI LIBRARY AND I2C LCD BACKPACK
The LCD modules require an initialization sequence at startup. The library provides this in the begin() function. If the device is not connected during initialization, it doesn't get initialized and will not function. If starting up disconnected is an expected condition, you need to add another lcd.begin(); call to your code after the display is connected.
Please be positive and constructive with your questions and comments.