Multi-digit word variable to string


Results 1 to 40 of 44

Threaded View

  1. #20
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Multi-digit word variable to string

    Richard,

    really thanks for your time.

    I found this,if i remember correctly somewhere related to this specific sensor.

    Code:
    tempir = (temp.highbyte << 8) + temp.lowbyte
    Then in the equation i have added the following
    Code:
    temperature  = tempir/50         ' based on the manual we need to divide by 50 or 0.02
    temperature  = temperature - 273 ' subtract 273 for Degree in C,actually is 273,15
    Your way is much more efficient and works just as expected. Im very happy.

    Now what is wrong with the I2C command?
    Attached Images Attached Images  

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts