OneWire.h can't be found -> Error

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
KGBEl
Posts: 32
Joined: 21 Feb 2023 00:37

OneWire.h can't be found -> Error

Post by KGBEl »

Beneath Arduino is a folder "librarys" in that folder is for example a folder OneWire.
In folder OneWire is OneWire.h and OneWire.cpp and still I get this error when compiling.


Arduino/DS18x20_Temperature_GitHub/DS18x20_Temperature_GitHub.ino:4:10: fatal error: OneWire.h: No such file or directory
#include "OneWire.h"
^~~~~~~~~~~
compilation terminated.

My .ino-file starts like:
/ ******************************** DS18x20_Temperature_GitHub ******************


#include "OneWire.h"

// OneWire DS18S20, DS18B20, DS1822 Temperature Example
//
// http://www.pjrc.com/teensy/td_libs_OneWire.html
//
// The DallasTemperature library can do all this work for you!
// https://github.com/milesburton/Arduino- ... ol-Library

OneWire ds(11); // on pin 10 (a 4.7K resistor is necessary)

void setup(void) {
Serial.begin(9600);
}
and even if I use <> instead of "" I get the same error.
Why?
KGBEl
Posts: 32
Joined: 21 Feb 2023 00:37

Re: OneWire.h can't be found -> Error

Post by KGBEl »

I forgot to tell, I'm trying to compile for a Z-Uno 2g...
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: OneWire.h can't be found -> Error

Post by PoltoS »

Please use our examples (from the File > Examples > Z-Uno G2 > ...). Our implementation of OneWire is a bit different, but has almost the same functionality and API
KGBEl
Posts: 32
Joined: 21 Feb 2023 00:37

Re: OneWire.h can't be found -> Error

Post by KGBEl »

Ok.
Where can I find more information about zuno_onewire.h and cpp?
KGBEl
Posts: 32
Joined: 21 Feb 2023 00:37

Re: OneWire.h can't be found -> Error

Post by KGBEl »

Thank you.
Post Reply