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

request description of data and clock pins specifying both GP# and pad# #19

Closed TPMoyer closed 2 years ago

TPMoyer commented 2 years ago

Current main.c, calibration.c and test.c have // SET THESE TO THE GPIO PINS CONNECTED TO THE // HX711's CLOCK AND DATA PINS const uint clkPin = 14; const uint datPin = 15; request const uint clkPin = 14; / GP14 pad 19 / const uint datPin = 15; / GP15 pad 20 /

This might help someone else to avoid making the same mistake I did: connecting to pads 14 and 15.

You can make something foolproof but you can't make it damn foolproof because some damn fool will still find a way...

endail commented 2 years ago

Thanks.

I've updated the documentation to those files and the readme.

TPMoyer commented 2 years ago

Thanks. I felt kind of stupid when I figured out what I did. OF COURSE the methods which select the pins use the GP not the pads#... but have programmed for 40 years with the precept: If I messed it up, someone else might too.

Thank you for responding positively.

On Thu, May 19, 2022 at 12:53 AM Daniel Robertson @.***> wrote:

Thanks.

I've updated the documentation to those files and the readme.

— Reply to this email directly, view it on GitHub https://github.com/endail/hx711-pico-c/issues/19#issuecomment-1131199826, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIOVQDDQTYEYQLVFLENO6TVKXCK5ANCNFSM5WKH4RUQ . You are receiving this because you authored the thread.Message ID: @.***>