Announcement

Collapse
No announcement yet.

Problem using Leddigits with integer over 32767

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

  • Problem using Leddigits with integer over 32767

    Hello,

    I´m trying to use Leddigits in order to show values ​​between 0.00 and 360.00 (2 decimals).

    I have a Led Digit Widget with 5 digits and 2 decimals

    Using:

    var numx;
    numx:=32767;
    img_Show(hndl, iLeddigits3); // show all digits at 0, only do this once
    ledDigitsDisplay(numx, iLeddigits3+1, 136, 5, 3, 24, 0) ;
    I can show 327.67

    I don´t know how to show digits over this value... Any idea?

    -------------------------
    I was trying to convert a 16 bit var to 32 bit...

    umul_1616(Azimut,posn,100); //posn value between 0 and 360 degrees
    p := str_Ptr(Azimut); // Azimut result between 0 and 36000
    str_Printf(&p, "%ld");
    -------------------------------


    Thank you,
    Álvaro


  • #2
    Finally I´ve solved the problem ussing two 'led display widgets' (Integer part with 3 digits and decimal part with 2 digits) and plotting a dot (using static text widget) between both.

    Format: XXX.YY (XXX iLeddigits1, YY iLeddigits2)

    Thank you

    Comment

    Working...
    X