Skip to content

Instantly share code, notes, and snippets.

@jacksenechal
jacksenechal / readscale.py
Last active January 24, 2019 16:51
Python script to read a USB scale in the Linux
#!/usr/bin/python
import os, time
import usb.core
import usb.util
import pygtk
pygtk.require('2.0')
import gtk
from sys import exit
import math