Created
April 25, 2013 17:47
-
-
Save tankywoo/5461634 to your computer and use it in GitHub Desktop.
树莓派 一直点亮GPIO11 控制的发光二极管
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BOARD) | |
# need to set up every channel which are using as an input or an output | |
GPIO.setup(11, GPIO.OUT) | |
while True: | |
GPIO.output(11, GPIO.HIGH) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment