-
-
Notifications
You must be signed in to change notification settings - Fork 26
Arduino
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"
inds18b20.cpp
- Change the
#include "../include/onewire.h"
line to#include "onewire.h"
inds18b20.cpp
- Change the
#include "../include/onewire.h"
line to#include "onewire.h"
inonewire.cpp
- Add
avr-ds18b20
library to your project in Arduino IDE - Have fun!