Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example.py comments #29

Open
koenner opened this issue Sep 8, 2019 · 2 comments
Open

example.py comments #29

koenner opened this issue Sep 8, 2019 · 2 comments

Comments

@koenner
Copy link

koenner commented Sep 8, 2019

I am new to coding and really appreciate you sharing this content. Looking at "example.py"; would it be possible to comment what each of the lines does? For example, trying to understand what "EMULATE_HX711=FALSE" does..

@NeonSpork
Copy link
Contributor

EMULATE_HX711 is a True/False flag that the user sets at the beginning of the script. If it is True then the hx711 module is imported from a module that emulated the hx711, aka the result is simulated. If EMULATE_HX711=False, as is the case in the example.py script, then the program imports the real hx711 module and will only work if it is run on hardware that has the RPi.GPIO library and HX711 library installed (most likely a Raspberry Pi) and has a HX711 properly connected via the GPIO pins.

@tatobari
Copy link
Owner

tatobari commented Mar 7, 2024

@koenner Are you still interested on using this library and solving this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants