LIQUID TWI LIBRARY AND I2C LCD BACKPACK

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mizamae
 
Posts: 1
Joined: Thu Feb 26, 2015 3:50 am

LIQUID TWI LIBRARY AND I2C LCD BACKPACK

Post by mizamae »

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!!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: LIQUID TWI LIBRARY AND I2C LCD BACKPACK

Post by adafruit_support_bill »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”