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

Multiple hx711s wastes PIO/SM resources #60

Open endail opened 1 year ago

endail commented 1 year ago

Each time a hx711_t is init'd, a copy of the PIO program is inserted into one of the RP2040's PIOs. It should instead:

Many SMs to one PIO.

endail commented 1 year ago

This will not work for hx711_multi_t.

The PIO init function modifies the PIO program itself to set the number of in pins. Individual state machines using the same PIO would therefore be required to use the same configuration.

May still be feasible for individual hx711_ts...