Skip to content

Instantly share code, notes, and snippets.

View SilentRhetoric's full-sized avatar

Brian Whippo SilentRhetoric

View GitHub Profile
@Moving-Electrons
Moving-Electrons / ambient_conditions.py
Created January 16, 2018 00:31
This script check ambient conditions every 2 minutes and updates an LED matrix graph accordingly. It uses a Raspberry Pi Zero W, Adafruit VCNL4010 proximity sensor and a Sense HAT. More info can be found at www.movingelectrons.net.
#!/usr/bin/python3
# Import the VCNL40xx module.
import Adafruit_VCNL40xx
from sense_hat import SenseHat
import time
import threading
import subprocess
# Create a VCNL4010 instance.