Skip to content

Instantly share code, notes, and snippets.

View prietopa's full-sized avatar

Jose Manuel Prieto prietopa

View GitHub Profile
@prietopa
prietopa / bh1750_relay.py
Created April 11, 2020 18:34
Switch on light when lumens down from 100lx
#!/usr/bin/python
import sys
import time
import smbus
import gpiozero
class BH1750():
""" Implement BH1750 communication. """