0

I don't know if his is the correct topic to ask this but here it goes:

I have a NodeMCU devkit 0.9 and I'm am able to use ESPlorer to upload basic code like the web server with some buttons that turn on and off LEDs on the board.

I was trying to interface NodeMCU with a load cell amplifier (HX711), which I saw has libraries for NodeMCU. How can I "include" hx711.c in my .lua file for it to recognize the functions inside hx711.c?

The error that appears when I try to send to ESP is

LUA interpreter error detected stdin:1: attempt to index global 'hx711' (a nil value)..."

Best regards.

dda
  • 6,030
  • 2
  • 25
  • 34

1 Answers1

1

You need to build a NodeMCU firmware that includes the HX711 module. Then you need to flash the new firmware to your devkit.

Marcel Stör
  • 22,695
  • 19
  • 92
  • 198