Category: gpio

Install and use GPIO in the Raspberry Pi 0

Install and use GPIO in the Raspberry Pi

Hits: 1 Module of installing GPIO for Python sudo apt-get -y python-pip sudo pip install rpi.gpio Use Raspberry Pai’s GPIO on Python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BMC)  或  GPIO.setmode(GPIO.BOARD) GPIO.setuo(12,GPIO.OUT) GPIO.output(12,GPIO.HIGH)  或 GPIO.output(12,1)  或  GPIO.output(12,True)...