Page 1 of 1

OneWire.h can't be found -> Error

Posted: 07 Mar 2023 20:13
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?

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

Posted: 07 Mar 2023 20:42
by KGBEl
I forgot to tell, I'm trying to compile for a Z-Uno 2g...

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

Posted: 08 Mar 2023 03:54
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

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

Posted: 10 Mar 2023 00:36
by KGBEl
Ok.
Where can I find more information about zuno_onewire.h and cpp?

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

Posted: 14 Mar 2023 03:09
by PoltoS

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

Posted: 17 Mar 2023 16:19
by KGBEl
Thank you.