moving things around and adding examples for mic hat code

This commit is contained in:
talksik
2023-04-27 10:34:53 -07:00
parent 91671ef554
commit 77c085ba69
121 changed files with 1273 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import RPi.GPIO as GPIO
import time
BUTTON = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(BUTTON, GPIO.IN)
while True:
state = GPIO.input(BUTTON)
if state:
print("off")
else:
print("on")
time.sleep(1)