Buzzer Python
2019. 12. 28. 21:08
Programing/Raspberry Pi)
# -*- coding: utf-8 -*-
import RPi.GPIO as gpio
import time
BUZZER = 7
# ____gipo 핀 세팅___#
gpio.cleanup()
gpio.setmode(gpio.BCM)
gpio.setup(BUZZER, gpio.OUT)
while True :
GPIO.output(22,GPIO.HIGH)
sleep(.1)
GPIO.output(22,GPIO.LOW)
sleep(.1)
'Programing > Raspberry Pi)' 카테고리의 다른 글
Multiprocessing Python (0) | 2019.12.28 |
---|---|
Database Insert Python (0) | 2019.12.28 |
Ultra(초음파) Python (0) | 2019.12.28 |
LED Python (0) | 2019.12.28 |
해커톤 2019 113조 서버 (0) | 2019.12.27 |