Changes between Initial Version and Version 1 of Watch_dog_for_RPi_Python_RPi
- Timestamp:
- Jun 12, 2015 5:14:00 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Watch_dog_for_RPi_Python_RPi
v1 v1 1 = Raspberry Pi上のサンプルプログラム(Python) = 2 3 - blink17.py 4 {{{ 5 #!/usr/bin/env python 6 7 import RPi.GPIO as GPIO 8 import time 9 10 LEDPIN = 17 11 12 GPIO.setwarnings(False) 13 14 GPIO.setmode(GPIO.BCM) 15 GPIO.setup(LEDPIN, GPIO.OUT) 16 17 while True: 18 LEDon = GPIO.output(LEDPIN, 0) 19 time.sleep(0.5) 20 LEDoff = GPIO.output(LEDPIN, 1) 21 time.sleep(0.5) 22 23 24 }}}