Veketti
Full Member level 3
Dear All,
I have been struggling to custom clear HD44780 compliant display with MikroC and PIC mikrocontroller. Issue is characters left from previous command in the display. I don't want to run "Lcd_Cmd(_LCD_CLEAR);" as it makes the display flicker. Eg. I show "Intake Eff: xx.x %". "Intake Eff:" doesn't change but the numbers after that do change. I can for example use "Lcd_Out(1, 15, 37);" to get the % sign to always to the last column but if the numbers change say two digit to one digit the ghost digit will stay there. How have you overcome this? I'm thinking is the only way to check the length of the char variable and somehow make it always say 5 characters long by filling the empty values with spaces?
Thank you in advance.
I have been struggling to custom clear HD44780 compliant display with MikroC and PIC mikrocontroller. Issue is characters left from previous command in the display. I don't want to run "Lcd_Cmd(_LCD_CLEAR);" as it makes the display flicker. Eg. I show "Intake Eff: xx.x %". "Intake Eff:" doesn't change but the numbers after that do change. I can for example use "Lcd_Out(1, 15, 37);" to get the % sign to always to the last column but if the numbers change say two digit to one digit the ghost digit will stay there. How have you overcome this? I'm thinking is the only way to check the length of the char variable and somehow make it always say 5 characters long by filling the empty values with spaces?
Thank you in advance.