Skip to content

Instantly share code, notes, and snippets.

@tomgross
tomgross / phone.py
Last active Mar 17, 2017 — forked from simonjenny/phone.py
Fairytale Phone
View phone.py
#!/usr/bin/python
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
c = 0
last = 1