I have trouble with the .h files. I can find them on internet and downloaded them but then I don't know what to do and wher to put thes files. I heared that these files have to be in the same sub-direcory of the sketch. I it just simply copy them from the download-directory to the sub-directory in which is also the .ino sketch. I'm not so sure about this. I've got something working but I don't know how and where thes .h files are
The .h files are header files and yes they can be placed in the same folder as the main .ino file. You may also have a file pair - a .cpp file and a .h file and these need to be kept together. To include these files in your program, you need an include statement near the top of your .info file:
#include "myfile.h"
Note the '#' at the front and the quotes rather than cheverons.
Usually these files will be included as part of a library, so I am curious as to why you are needing to download them individually from the Internet? What are you trying to add to your sketch?
As a matter of interest, which version of the IDE are you using ?
Heel erg bedankt. Ik wist niet dat ze in de bibliotheek, vandaar de download. Maar dat hoeft dus niet. Fijn dat ik dit nu weet
Ik gebruik de meest recente versie
IDE >> HELP >> ABOUT >> ?
Please write your posts in English @coenrijn. You are welcome to compose your posts in Dutch, then use a machine translation service such as Google Translate to translate the post before posting that English text.
We do have a forum category specifically dedicated to conducting discussions in Dutch:
However, since you initiated this topic in English, I will request you continue to use English for the duration of the discussion here.
You are very welcome to create future topics on other subjects in the International > Nederlands forum category if you prefer to communicate in Dutch. However, please don't create a duplicate topic on the ".h libraries" subject there.
Usually .h files are part of libraries and you need to install the library; if you're missing the associated files (e.g. .cpp files) the verify process (specifically the linker step at the end) will fail.
If you look at a simple library like RobTillaart's HX711 library you will find two files
HX711.cpp
HX711.h
You will include the .h file and if you installed the library correctly the .cpp file will be compiled and the result of that compile (an object file) will be linked with your compiled sketch (again an object file) and some other stuff.
If you don't have the .cpp file it will not be compiled and the linker can not find the functions that belong to the library resulting in a linker error.
Oke I will use English in future. For now the problem is solved. Than,s
Make sure to mark the post that gave you the answer as the solution so that others may learn.

