endail / hx711-pico-c

Implementation of single and multiple HX711 use via RP2040's state machine
https://endail.github.io/hx711-pico-c/
MIT License
32 stars 7 forks source link

Don't disable pin input in close #28

Closed endail closed 2 years ago

endail commented 2 years ago

https://github.com/endail/hx711-pico-c/blob/bbd8f4327534a6af1586710a0fb72380da477d08/src/hx711.c#L108

It seems intuitive for this to complement the gpio_init/gpio_set_dir calls within the hx711_init function. But the HX711 init function merely ensures the data pin can be used as an input. It should not be seen as a method for toggling the data pin's input state back and forth.