Skip to content

Instantly share code, notes, and snippets.

View houserockr's full-sized avatar

Frank houserockr

  • Frankfurt, Germany
View GitHub Profile
@oskar456
oskar456 / bh1750.py
Created June 20, 2015 15:26
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/
import smbus
import time
class BH1750():
""" Implement BH1750 communication. """