Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
@Akkiesoft
Akkiesoft / hayonero.py
Last active December 1, 2019 08:09 — forked from oskar456/bh1750.py
BH1750 python library
#!/usr/bin/python2
# vim: expandtab ts=4 sw=4
# Inspired by http://www.raspberrypi-spy.co.uk/2015/03/bh1750fvi-i2c-digital-light-intensity-sensor/
# https://gist.github.com/oskar456/95c66d564c58361ecf9f
import smbus
import time
import sys
from subprocess import Popen, PIPE