Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GPIO ====== * [[http://elinux.org/RPi_GPIO_Interface_Circuits|interface circuits]] GPIO numbers (BCM mode) {{:tips:rasberry:gpio-numbers-pi2.png|}} physical number (BOARD mode) {{:tips:rasberry:physical-pin-numbers.png|}} test pin 17 <code> gpio -g mode 17 out gpio -g write 17 1 sleep 2 gpio -g write 17 0 </code> python <code> import RPi.GPIO as GPIO import time GPIO.cleanup() GPIO.setmode(GPIO.BOARD) channel=11 GPIO.setup(channel, GPIO.OUT) while True: GPIO.output(channel, GPIO.HIGH) time.sleep(1) GPIO.output(channel, GPIO.LOW) time.sleep(1) </code> tips/rasberry/gpio.txt Last modified: 2016/05/19 09:43by scipio