tatobari / hx711py

HX711 Python Library for Raspberry Pi.
Apache License 2.0
206 stars 154 forks source link

How to change GPIO pins #54

Closed achilds97 closed 11 months ago

achilds97 commented 11 months ago

I was just wondering where in the code you can change the GPIO pins you are using. I see that in the initialization of the hx711 class it is setting some settings for GPIO, but I'm not sure those are the pins.

On a related note, would there be any issue with changing the pins to any other numbers? I'm wanting to run multiple load cells out of one Pi and so I was hoping I could do multiple groups like 1,2,3,4 and then 5,6,7,8 for the next one and so on. Would the library still be able to correctly read from these?

achilds97 commented 11 months ago

Nevermind, I obviously didn't understand how the pins on a pi are laid out, but I figured it out and understand my options for running multiple load cells.