Skip to content

Instantly share code, notes, and snippets.

View jung-youjin's full-sized avatar
💭
📚

YouJin Jung jung-youjin

💭
📚
View GitHub Profile
@jung-youjin
jung-youjin / hx711.py
Created August 18, 2021 07:17 — forked from Richard-Major/hx711.py
Python port for RaspberryPI of the HX711 Breakout Board
#!/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
🌞 Morning 108 commits ██▉░░░░░░░░░░░░░░░░░░ 14.2%
🌆 Daytime 250 commits ██████▉░░░░░░░░░░░░░░ 32.9%
🌃 Evening 196 commits █████▍░░░░░░░░░░░░░░░ 25.8%
🌙 Night 205 commits █████▋░░░░░░░░░░░░░░░ 27.0%