LED Python
2019. 12. 28. 09:14
Programing/Raspberry Pi)
# -*- coding: utf-8 -*-
import RPi.GPIO as gpio
import time
LED_1 = 27 # LED1
# ____gipo 핀 세팅___#
gpio.cleanup()
gpio.setmode(gpio.BCM)
gpio.setup(LED_1, gpio.OUT)
def LoopLED():
gpio.output(LED_1, gpio.LOW)
time.sleep(1)
gpio.output(LED_1, gpio.HIGH)
time.sleep(1)
LoopLED()
'Programing > Raspberry Pi)' 카테고리의 다른 글
Buzzer Python (0) | 2019.12.28 |
---|---|
Ultra(초음파) Python (0) | 2019.12.28 |
해커톤 2019 113조 서버 (0) | 2019.12.27 |
Raspberry Pi - OpenCV 설치 (0) | 2019.12.23 |
TCP Rasspberry Pi Python and Android Client (0) | 2019.09.21 |