May 5, 2015 #1 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 Multiple I2C LCD with AVR and mikroC PRO AVR. I didn't post in my previous Multiple LCDs thread because this is for AVR. This is a Multiple I2C LCD library. You can have 8 I2C LCDs on one I2C bus. I have used I2C LCDs and modules from Banggood. Attachments I2C LCD Li.rar 164.4 KB · Views: 171 i2c_lcds.png 63.5 KB · Views: 197
Multiple I2C LCD with AVR and mikroC PRO AVR. I didn't post in my previous Multiple LCDs thread because this is for AVR. This is a Multiple I2C LCD library. You can have 8 I2C LCDs on one I2C bus. I have used I2C LCDs and modules from Banggood.
May 6, 2015 #2 S sunil_kasar Newbie level 6 Joined May 6, 2015 Messages 13 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Location India Activity points 125 I am using 20x4 LCD display(JHD 204A) with PCF8574T. connecting these to ATmega16 microcontroller. I am using GCC compiler. can I use the same code?
I am using 20x4 LCD display(JHD 204A) with PCF8574T. connecting these to ATmega16 microcontroller. I am using GCC compiler. can I use the same code?
May 6, 2015 #3 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 You only have to make changes in library functions. That is you have to change the TWI_xyz() functions to your GCC's TWI functions.
You only have to make changes in library functions. That is you have to change the TWI_xyz() functions to your GCC's TWI functions.
May 6, 2015 #4 S sunil_kasar Newbie level 6 Joined May 6, 2015 Messages 13 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Location India Activity points 125 K.... I will do changes... Thank you for the valuable guidance...
May 7, 2015 #5 S sunil_kasar Newbie level 6 Joined May 6, 2015 Messages 13 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Location India Activity points 125 @Milan.rajik.... I made changes in the code as you suggested. But still it is not working. I have attached the code. kindly Help me Attachments I2c_20_4.txt 7.5 KB · Views: 125
@Milan.rajik.... I made changes in the code as you suggested. But still it is not working. I have attached the code. kindly Help me
May 7, 2015 #6 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 How do you set TWI Speed ? What speed ?
May 8, 2015 #7 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 Refer to book "AVR Microcontroller and Embedded Systems using Assembly and C" by Muhammed Ali Mazidi. Page no. 646 and 647. It has i2c (TWI) C code. Make TWI functions based on it and try.
Refer to book "AVR Microcontroller and Embedded Systems using Assembly and C" by Muhammed Ali Mazidi. Page no. 646 and 647. It has i2c (TWI) C code. Make TWI functions based on it and try.