Trouble with Static LCD API v2.0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

when writing a 7 segment number to my LCD I get an unexpected result when using leading zero mode.

   

The code:

   

LCD_SegStat_1_Write7SegNumber_0(753,0,0);

   

produces the expected output " 753" on my LCD, howver, the code:

   

LCD_SegStat_1_Write7SegNumber_0(753,0,1);

   

results in '0750'

   

On further examination, if the command is continually re-executed, the last digit flickers between 0 and 3 looking like an 8.

   

Can someone confirm this is a bug?

0 Likes
1 Reply
Anonymous
Not applicable

Solved:

   

I initiated a support case and they were able to identify an error in LCD_SegStat_1_Write7SegNumber(), Briefly, this was the solution:

   

   

"Actually, i just changed the line "for(i = position; i <= LCD_SegStat_1_digitNum_0; i++)" to "for(i = position; i < LCD_SegStat_1_digitNum_0; i++)". No other modification."

   

I presume it will eventually be fixed in a component library update.

0 Likes