1 Reply Latest reply on Feb 8, 2012 6:41 PM by randy.janzen

    Trouble with Static LCD API v2.0

    randy.janzen

      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?

        • 1. Re: Trouble with Static LCD API v2.0
          randy.janzen

          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.