Changes between Initial Version and Version 1 of Watch_dog_for_RPi_Python_RPi


Ignore:
Timestamp:
Jun 12, 2015 5:14:00 PM (9 years ago)
Author:
aoki
Comment:

--

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
     7import RPi.GPIO as GPIO
     8import time
     9
     10LEDPIN = 17
     11
     12GPIO.setwarnings(False)
     13
     14GPIO.setmode(GPIO.BCM)
     15GPIO.setup(LEDPIN, GPIO.OUT)
     16
     17while 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}}}