Shop OBEX P1 Docs P2 Docs Learn Events
would anybody share his SPIN-Code reading multiple DS1820 1-Wire-devices - Page 2 — Parallax Forums

would anybody share his SPIN-Code reading multiple DS1820 1-Wire-devices

2»

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2015-02-28 14:26
    Hi Chris,

    thank you very much for sharing your code.
    I adapted it for DS1820-devices

    I adapted two lines of code
      SetResolution(9)
      DecF((ReadTemp * 5), 10, 1)
    

    as DS1820-sensors have only 9bit resolution and only 0.5°C precision

    best regards

    Stefan
Sign In or Register to comment.