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 StatesPosts: 925 |
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. |
||||
G8JCF Guru Joined: 15/05/2014 Location: United KingdomPosts: 676 |
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 StatesPosts: 925 |
Hi Peter, Works perfect!!! Thanks. |
||||
G8JCF Guru Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Hi Jim Great News, thanks for the report 73 Peter The only Konstant is Change |
||||
Print this page |