You want to import a library not an example.
Arduino Folder
|-- libraries
|--HX711
|--HX711.cpp
|--HX711.h
ex:
C:\Program Files (x86)\arduino-1.8.5-windows\arduino-1.8.5\libraries\HX711
Put the files in a folder called HX711 to have everything nice and tidy.
I use the standalone version of arduino ide, if you have it installed I suspect the folder would be under
My Documents\Arduino\libraries\
According to the documentation.
You should put the nodemcu_test.ino in your sketchbook folder as I would generally avoid putting non-library files in the libraries folder. If you do want to keep the examples for a specific library close to the library create a subfolder:
Arduino Folder
|-- libraries
|--HX711
|-- examples
|--nodemcu_test.ino
|--HX711.cpp
|--HX711.h
As Juraj pointed out, this has the additional advantage of them being accessable in the examples menu.
If you want the libraries close to your sketch you are actually working on, follow the guide and put the library files in your sketchbook folder for your project. I would not advise for the following reasons:
I read that in newer IDEs 1.8.X you would need to put the files in a /src/subfolder
. For me it did work without that, but the main caveat remained:
#include <HX711.h>
means to look in the library folder as mentioned above.
If you want to put the files somewhere else, you have to use
#include "HX711.h"
and specify the path (or in this example it was located where my .ino was). But now I also need to change
#include <HX711.h>
to
#include "HX711.h"
in the HX711.cpp file. What a hassle!
So my takeaway message would be: Stick with Arduino\libraries\
.