Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 06:38 05 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : I2C LCD backpack Library

Author Message
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 12:55pm 25 Aug 2014
Copy link to clipboard 
Print this post

I don't know if this has been covered yet... I loaded the I2C LCD library from Peter G8JCF and connected a typical 1602 with the "typical" I2C back pack. Ran the code and viola, everything worked out of the box.

Tried another one with a different Chinese backpack and nothing worked. Did a little homework and found that it needs to be init'ed like this...

LCD_INIT &H20, 0, 6, 4, 7
with backlight on = 0 and off = 1 - worked great!!!

The first one worked fine from the library init as...

LCD_INIT &H27, 1, 0, 2, 3
with backlight on = 1 and off = 0

Both modules from ebay.

Hope this helps someone who got the same one I did. Edited by viscomjim 2014-08-26
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 12:01am 26 Aug 2014
Copy link to clipboard 
Print this post

Hi Jim

I have update the LCDI2C Lib to allow users to specify Inverting/Non-Inverting backlight control when calling LCDI2C_Init. The updated LIB is available for download from LCDI2CLibV6.zip

Since you've got an inverting backlight control LCD, could you please test and confirm ?

NB Once you have specified Inverting or Non-Inverting in LCDI2C_Init, thereafter calling LCDI2C_BackLight(1) will always turn ON the backlight, and LCDI2C_BackLight(0) will always turn OFF the backlight.

73

Peter
The only Konstant is Change
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 12:01pm 26 Aug 2014
Copy link to clipboard 
Print this post

Hi Peter,

Works perfect!!! Thanks.
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 12:42pm 26 Aug 2014
Copy link to clipboard 
Print this post

Hi Jim

Great News, thanks for the report

73

Peter
The only Konstant is Change
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024