Announcement

Collapse
No announcement yet.

uadd_3232 et UDEC5ZB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16


    Here is what I put
    ledDigitsDisplay_str (ledbufptr, iLeddigits1 1, 13, 6, 5, 32, 1);

    Comment


    • #17


      should read 1 +1

      Comment


      • #18


        Are you saying that if you send '0' then a CRLF, you want to see just '0' on the display?
        _______________
        Best Regards,
        Howard

        Comment


        • #19
          yes I want to represent exactly the same display as on the scale.

          has zero kg 0 KG 0000 KG and not what is the same is true
          a 125 kg 125 KG

          it is surprising that during the startup of the aplication only one zero is displayed.

          Have you noticed your μlcd 43 it must be the same.
          Another little thing I noticed when I type: print ( "éééééé", &strbufptr,"\n")
          it has nothing after strbufptr value or accented letters are not recognized.

          thank you howard you interresser my application has

          greetings
          thierry

          Comment


          • #20
            The line:
            img_Show(hndl, iLeddigits1); // show all digits at 0, only do this once
            at the beginning of the program will show all of the digits of the control, no matter how it is configured later.

            Comment out that line, then somewhere before the start of the loop in main put:

            to(dispbuf); print("0\n");dispbufptr := str_Ptr(dispbuf); //Get the pointer to the display bufferledDigitsDisplay_str(dispbufptr, iLeddigits1+1, 192, 8, 1, 32, 1) ;

            But of course, modify the last line above to match the line later in your program......
            EDIT:
            I am going to edit this post to reflect some information I got from support. The decimal point is only ever displayed once, and that is during the img_Show(hndl, iLeddigits1); statement. Later calls do not redraw the decimal point.....
            _______________
            Best Regards,
            Howard

            Comment


            • #21


              hi howard
              my first trials connected with the balance before I worked with terminal.

              greetings
              thierry

              http://youtu.be/JFgfoPWbAKg[/video]]

              Comment


              • #22


                Looks like you are getting there!

                Good Job!
                _______________
                Best Regards,
                Howard

                Comment


                • #23


                  hello howard

                  no it does not work properly.

                  video looks at the beginning 0.1040 grams on the scale 4D 1040 logical because leading zero = no.


                  well if you look a bit further when there is nothing on the scale of the display scale is 0.0000 grams and 4d 0000 no sense ...

                  So there is something wrong but I do not see or.

                  see you soon

                  thierry

                  Comment


                  • #24


                    howard

                    I made different tests and if I put in leddigitsdisplay decimal = 1

                    and if I send one display is 00.1


                    there is a problem in leddigitsdisplay_str.

                    i don't look where.

                    thierry

                    Comment


                    • #25


                      Did you change mindigit to 1, like I said in post #15?
                      _______________
                      Best Regards,
                      Howard

                      Comment


                      • #26


                        Follow post #15. If I send 1, I see 1 on the screen.....
                        _______________
                        Best Regards,
                        Howard

                        Comment


                        • #27


                          hello
                          I owe you an apology because I did not understand the last time (# 15)

                          the one I actually zero if there is no decimal.

                          but if I declare one / or more decimal places has any place in the programs I need to change to get the right number of zero.

                          you have the right ... to think ..

                          thierry

                          Comment


                          • #28


                            I did find a bug in the leddig_str function.... change:

                            if (i > (Digits - MinDigits)) //If not, but is within the minimum # of digits to show

                            to:

                            if (i >= (Digits - MinDigits)) //If not, but is within the minimum # of digits to show

                            This fixes it so if you set mindigits = 5, at least 5 digits will always be shown.....
                            _______________
                            Best Regards,
                            Howard

                            Comment


                            • #29
                              Also, change:
                              to(dispbuf); print("0\n");

                              to

                              to(dispbuf); print("0");
                              _______________
                              Best Regards,
                              Howard

                              Comment


                              • #30


                                hello howard

                                there is something wrong between the comma and zeros not significant.

                                have you seen the video?

                                I did the mod read # 15.

                                after reset display a 0.0 if I send the rs 0 enter a display I .0 I would like to see 0.0.

                                Did you have any idea what is the piece of code or leddigitdisplay that produces this phenomenon.

                                see you soon
                                thierry

                                Comment

                                Working...
                                X