UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266

Home Page:https://esp-idf-lib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HX711: Calibration factor (float required)

omani opened this issue · comments

The issue

the hx711 component is using int32_t for all readings from the scale.

how can I use floating points when dealing with calibration where I have to set a calibration factor to calibrate eg. 1kg?

I see other hx711 implementations out there using longs, floats, doubles, etc.

is it possible to convert int32_t to float? and why does ESP_LOGI not print any float numbers?

Which SDK are you using?

ESP8266 RTOS SDK

Which version of SDK are you using?

master

Which build target have you used?

  • esp32
  • esp32s2
  • esp32s3
  • esp32c2
  • esp8266
  • other

Component causing the issue

hx711

Anything in the logs that might be useful for us?

No response

Additional information or context

No response

Confirmation

  • This report is not a question nor a request for drivers.

nvm this was a problem on my side.