Reply to comment

gosc's picture

DS18(S)20 - temperatura ujemna

Else
  Lsb = Not Lsb
  Lsb = Lsb +1
  Temp = Lsb/2
  Temp = Temp * (-1)
End If

A nie prościej byłoby:

Else
  Lsb = 256 - Lsb
  Temp = Lsb/2
End If

Poza tym nawiązuję do mojego wcześniejszego postu: czy obsługa DS1820 (taki mam) i DS18S20 jest taka sama ?

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • You can enable syntax highlighting of source code with the following tags: [code], [blockcode], [c], [cpp], [java], [javascript], [php], [python], [qb].
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options