Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Ioannis; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    No need for flames here please.

    We are on this forum to help and not hurt each other.

    Especially with the season coming...

    Ioannis
  2. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    If the chip is the MAX30102, on page 16 seems that reading needs first a write.

    Ioannis
  3. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    Well, if that compiler could do floating, maybe it could be used. But in PBP integer math? I do not think so. You need what Richard did as a workaround.

    Ioannis
  4. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    OK, I see.

    So, if you want to move the trackbar to position $28 you will use



    HserOut [$01,$05,$00,$00,$28,$2C]


    and the slider will goto position $28.
  5. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    The number is just the same either hex, binary or decimal. 128 is the same as %10000000 or $80. You show it in different way.

    The trackbar object, what exactly is?

    Ioannis
  6. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    The msb and lsb in your display string what are exactly? Ascii values or binary?

    And being msb and lsb, I understand that these two construct a word value. For what purpose? Your display for...
  7. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    If your variable is ranging from 0 to 65536 (the maximum that word can hold) obviously the HSEROUT command cannot handle that. With HSEROUT you can use only ascii values.

    So, as you have already...
  8. Replies
    43
    Views
    30,611

    Re: Multi-digit word variable to string

    Or use DEC modifier like DEC k. If k=5, DEC k will send out the "5".

    With DEC you can also specify how many digits you will send. E.g. DEC3 will send 3 digit of the variable with the appropriate...
Results 1 to 8 of 8