I am a novice, I want to ask a question, my board has been connected, but there is this error when running

C:\Users\Administrator\Desktop\795-Thermochromic-Clock-Frame-main\Thermochromic-Clock-Frame-main\code\Thermochromic_Clock_Frame\Thermochromic_Clock_Frame.ino:7:10: fatal error: OneWire.h: No such file or directory
7 | #include <OneWire.h>
| ^~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: OneWire.h: No such file or directory

Welcome to the party.
You’ll get better responses without screenshots (unless nothing else will do!)

Did you ‘install’ the library ?

Have a browse through the sticky posts of the forum, they’ll often give you clues on solving your question, or posting better questions !

Good luck.

2 Likes

You need to install that library. You can search for it and install it directly through your Integrated Development Environment (IDE).

To do this use the menu Sketch -> Include Library -> Manage Libraries ...

Where the -> represents an other level of the menu.

You will get a box to search for a library put OneWire in that box and see the list you get back, There might be more than one here, choose the one that says something like "official Arduino".

Ask again if you don't understand any specific point.

Just to get your terminology a little more in the right direction.

I think that most of us will read your "topic title" as "you have uploaded code and it does not work as expected".

But you did not get to the "uploaded" stage yet, you're stuck in the compile (Arduino calls it verify) stage.

Thank you! Then we encountered a new problem…..

Thank you! Then we encountered a new problem…..

Thank you! Then we encountered a new problem…..

Thank you! Then we encountered a new problem…..

I guess you missed the suggestion about not posting screenshots ?

Please do not post the same message 4 times; once is enough.

Please post your complete code; don't forget to use code tags.

AND there is no need to post to every single user. If you want to address multiple users with one post simply use the @ userName (no space between the @ and the user name) to bring it to the attention of other users.

Looks very much like he did. Four times.

Let me say one more time screen shots for code is absolutely useless.
Do not do it.

You might want to look at this How to get the best out of this forum before you proceed any further.

It will tell you how to post code correctly.

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