lcd_i2c_setCursor function for LCD 20x04
I hope this is the right section of the site to ask this question, otherwise please redirect this thread.
I just started programming, I am using a 20x04 LCD with stm32F407G and I need the classic function "
lcd_i2c_setCursor (row, col); ". I am not able to implement it by modifying the one already in the 16x02 display library.
So I am asking if you can redirect/send me to a post or link where this function is explained for 20x04 or if someone already has it and can attach the code so that I can "copy-paste" it into my project.
Or if there is a way to modify the function " lcd_i2c_setCursor (row, col); " that I have for the 16x02 LCD ... we can modify it here together:
void lcd16x2_i2c_setCursor(uint8_t row, uint8_t col)
{
uint8_t maskData;
maskData = (col)&0x0F;
if(row==0)
{
maskData |= (0x80);
lcd16x2_i2c_sendCommand(maskData);
}
else
{
maskData |= (0xc0);
lcd16x2_i2c_sendCommand(maskData);
}
}Thank you.
