Hi everyone!
I have a 20x04 LCD which I use with I2C (sda and scl pin) with a SMT43F407. This is my first time using an LCD and I'm having a bit of trouble using and implementing this function:
lcd_put_cur(int row, int col); //it places the cursor in the row and column I give it as input
I have this function in the lcd.c library that I use but it doesn't work properly (I enclose that library and the main.c). I have downloaded lcd.c library from the Internet and I think it was created for LCD 16x02 (not the 20x04) ... so something probably needs to be changed.
By the way, there is also another function in the library called 'lcd16x2_i2c_setCursor' but I haven't tried it and don't know if it works or not.
I ask you if you can code, change my lcd.c library, attach it and discuss with me what the function lcd_put_cur(int row, int col); should look like so that I can implement it and simulate the correct operation.
I think that probably the 20x04 LCD consists of two 16x02 LCDs connected in series, but the designers used one controller for rows 1 and 3 and the second controller for rows 2 and 4. Maybe there is a legitimate electrical engineering reason for doing it that way, or maybe someone was just crazy.
I have a 20x04 LCD which I use with I2C (sda and scl pin) with a SMT43F407. This is my first time using an LCD and I'm having a bit of trouble using and implementing this function:
lcd_put_cur(int row, int col); //it places the cursor in the row and column I give it as input
I have this function in the lcd.c library that I use but it doesn't work properly (I enclose that library and the main.c). I have downloaded lcd.c library from the Internet and I think it was created for LCD 16x02 (not the 20x04) ... so something probably needs to be changed.
By the way, there is also another function in the library called 'lcd16x2_i2c_setCursor' but I haven't tried it and don't know if it works or not.
I ask you if you can code, change my lcd.c library, attach it and discuss with me what the function lcd_put_cur(int row, int col); should look like so that I can implement it and simulate the correct operation.
I think that probably the 20x04 LCD consists of two 16x02 LCDs connected in series, but the designers used one controller for rows 1 and 3 and the second controller for rows 2 and 4. Maybe there is a legitimate electrical engineering reason for doing it that way, or maybe someone was just crazy.
Attachments
-
4.9 KB Views: 8
-
4.6 KB Views: 6
-
345.9 KB Views: 8