Skip to content

Instantly share code, notes, and snippets.

View vwillcox's full-sized avatar
🏠
Working from home

Vincent Willcox vwillcox

🏠
Working from home
View GitHub Profile
@vwillcox
vwillcox / pijuice-charge.py
Created June 6, 2018 17:29
Python script to show Charge of attached PiJuice module on a SchollPhat
#!/usr/bin/env python
import math
import sys
import time
import scrollphat
import json
from pijuice import PiJuice # Import pijuice module
@vwillcox
vwillcox / scan4pi.py
Last active September 17, 2017 21:26
#! /usr/bin/python
# Python3 code to print IP addresses and host name of local network
# to e-ink screen
import nmap
import sys
import socket
from gpiozero import RGBLED, Button
import smbus
@vwillcox
vwillcox / gertboard-wind-led.py
Last active January 2, 2016 04:09
Read from PYWWS Weather raw file and display the wind speed as a range of LEDs on the GertBoard
#!/usr/bin/env python2.7
# Python to read pywws raw weather-file and output windspeed
# To the GertBoard LED's based on strength
from collections import deque
import csv
import wiringpi
from time import sleep
import sys
import math
import imaplib
import email
#connect to gmail
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('[email protected]','yourPassWordPlease')
mail.select('inbox')
mail.list()