mirror of
https://github.com/feelfreelinux/ds18b20.git
synced 2025-12-15 14:51:15 -08:00
Update README.md
This commit is contained in:
parent
d0d3218ad1
commit
096e791060
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue