Skip to content

Instantly share code, notes, and snippets.

View angusbarnes's full-sized avatar
💻
Grinding

Angus Barnes angusbarnes

💻
Grinding
View GitHub Profile
import RPi.GPIO as GPIO
import time
#GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BCM)
# Define the update rate of this program
# Avoid large values as this will needlessly cycle and heat
# the BCM chip on the board. In theory this value could be as
# low as 0.5 - 1 Hz given our usecase, but 50 is used for responsivity