Skip to content
Jacek Wieczorek edited this page Oct 29, 2016 · 2 revisions

The library is not intended to use with Arduino IDE, but it can be after some tweaking. Here's what you have to do:

  • Create avr-ds18b20 directory in your Arduino libraries folder
  • Copy all .c and .h files from library into the directory you created before
  • Change all .c extensions to .cpp
  • Change the #include "../include/ds18b20.h" line to #include "ds18b20.h" in ds18b20.cpp
  • Change the #include "../include/onewire.h" line to #include "onewire.h" in ds18b20.cpp
  • Change the #include "../include/onewire.h" line to #include "onewire.h" in onewire.cpp
  • Add avr-ds18b20 library to your project in Arduino IDE
  • Have fun!
Clone this wiki locally