HX711: Calibration factor (float required)
omani opened this issue · 1 comments
omani commented
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.
omani commented
nvm this was a problem on my side.