gandalf15 / HX711

Read HX711 ADC for Weigh Scales on Rasperry PIs.

Repository from Github https://github.comgandalf15/HX711Repository from Github https://github.comgandalf15/HX711

GPIO.setmode(GPIO

adriencarbonaro opened this issue · comments

I commented a line on one of your previous commits (#5e5d9). I think this line is needed. What do you think ?

5e5d966#r31858297

No. You have to set the mode in the file that uses the HX711 class. The reason for this is that the class should be independant of the GPIO mode you are going to use.

Does it make sense? I am opened for the discussion. Thanks

You're actually right and you set it in the first line of your example so that is a good workflow ! Thank you !