OneWire.h can't be found -> Error
Posted: 07 Mar 2023 20:13
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?
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?