Update README.md

This commit is contained in:
Feelfree 2016-09-29 18:11:45 +02:00 committed by GitHub
parent d0d3218ad1
commit 096e791060

View file

@ -3,5 +3,5 @@
Put <b>ds18b20.c</b> and <b>ds18b20.h</b> in the same directory as your project code. <br>
Include library with <code>#include ds18b20.h</code> <br>
To initialize library, call <code>DS_init(GPIO);</code><br>
To get temperature(in Celcius), call <code>DS_get_temp()</code><br>
To get temperature(in Celcius), call <code>DS_get_temp();</code><br>
<a href="https://github.com/feelfreelinux/myesp32tests/blob/master/examples/ds18b20_temperature.c">For example, see this code.</a>