Skip to content

Instantly share code, notes, and snippets.

View nickbalch's full-sized avatar
🎯
Focusinging

nickbalch

🎯
Focusinging
View GitHub Profile
@nickbalch
nickbalch / RaspberryPi
Last active August 8, 2017 09:42
Prepare a new Pi ... config files
##
@nickbalch
nickbalch / gpio.py
Created June 16, 2016 15:25
Raspberry Pi GPIO Interrupt to MQTT
import RPi.GPIO as GPIO
import time
import paho.mqtt.client as paho
GPIO.setmode(GPIO.BCM)
#GPIO.setwarnings(False)
GPIO.setup(19, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # push button
print("set up pin")