Skip to content

Instantly share code, notes, and snippets.

Avatar

Frank houserockr

  • Frankfurt, Germany
View GitHub Profile
@oskar456
oskar456 / bh1750.py
Created Jun 20, 2015
BH1750 python library
View bh1750.py
#!/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. """