This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Development for reading sparkfun HX711 load cell amp | |
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BCM) | |
class HX711: | |
def __init__(self, dout, pd_sck, gain=128, readBits=24): | |
self.PD_SCK = pd_sck | |
self.DOUT = dout |