Announcement

Collapse
No announcement yet.

Convert value 32bit to 16bit.

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

  • Convert value 32bit to 16bit.

    Hi,

    I have a 32bit value and I like to put this value to a LedDigit, but all 4DGL value are in 16bit.
    How can I get my 32bit value and transform it in 16bit ?

    Ex: 78 968 (32bit) to (16bit).

    I have some ideas but i'm not really familiar with bit transformation.

    Have you already create a function to do that, or have you a simple solution.

    Ps: I looked at the forum but I didn't find something very interesting.

    Best Regards
    Toragan

  • #2
    Hi Toragan,


    I think the links below are what you are looking for.

    4D-CD-00004 ViSi-Genie Magic Arduino 32bit LED Digits
    This post might help you to get what you want to achieve especially, you are using ViSi Genie Environment.

    ledDigitsDisplay for unsigned long numbers
    If not visited yet, This forum thread has a posted function, wherein it is relevant to your concern.


    Best regards,
    Kayven

    Comment

    Working...
    X