Announcement

Collapse
No announcement yet.

ledDigitsDisplay - decimal dot missing

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

  • ledDigitsDisplay - decimal dot missing

    Hi,

    I'm trying to use different color LDD:
    GREEN (iColorGreen) if value 3000 && 7000

    I put 3 LDD, index named iColorGreen, iColorYellow and iColorRed, on top each other.

    If GREEN is used:
    img_Show(hndl, iColorGreen);
    ledDigitsDisplay(2500, iColorGreen+1, ...) ;

    Then, when the value increases to, let say, 4500, YELLOW is used:
    img_Show(hndl, iColorYellow);
    ledDigitsDisplay(4500, iColorYellow+1, ...) ;

    It's OK but the appearance is not quite pretty.
    When changing from one LDD to each other, 88.88 flash once.

    So, I try the following:
    img_SetAttributes(hndl, iColorGreen, I_STAYONTOP);
    ledDigitsDisplay(2500, iColorGreen+1, ...) ;
    ......
    img_SetAttributes(hndl, iColorYellow, I_STAYONTOP);
    ledDigitsDisplay(4500, iColorYellow+1, ...) ;

    If works very very pretty but the decimal point does not display.
    Any idea? Please kindly help.

    Jackie

  • #2


    The decimal point is only written once, when you do the

    img_Show(hndl, iLeddigits1); // show all digits at 0, only do this once

    If you are placing three led digits over the top of each other, you will need to do that prior to each display.

    If you are noticing the flashing, (00.00 probably) then the way to get around it is probably do a little rectangle where you want the dot to be.

    eg

    gfx_RectangleFilled(80,80,84,84,LIME) ;
    Mark

    Comment

    Working...
    X