Skip to content

Instantly share code, notes, and snippets.

@dkisselev
dkisselev / ipplate.py
Created July 28, 2013 18:43
Python non-blocking execute every x seconds.Used on my raspberry pi to update the display on my (Adafruit LCD+Keypad)[http://www.adafruit.com/products/1115] board while still being able to constantly poll for button presses.Also updates the display with current date+time and wifi IP address.
#!/usr/bin/python
from sys import exit
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate
from subprocess import *
from time import sleep, strftime
from datetime import datetime
import time