OneWire.h: No such file or directory

I had to place my DallasTemprature codes inside a .cpp file beside my main code. When onewire is in the main Arduino code onewire.h can be found and works but when I place it inside the .cpp IDE give me an Error: "OneWire.h: No such file or directory"

Any ideas?

BTW sorry for my bad English

Add including onewire.h to the your .cpp file where you using it

"#include <OneWire.h>" is already written in the .cpp

Please show your code - all files

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.