Raspberry Pinout

BCM 3 (I2C Çarpanı)

Alt0Alt1Alt2Alt3Alt4Alt5
SCL1SA2
  • Physical pin 5
  • BCM pin 3
  • Wiring Pi pin 9
  • BCM pin 1 on Rev 1 ( very early ) Pi

SCL Raspberry Pi'deki I2C pinlerinden biri. I2c hakkında detaylı bilgi.

require 'wiringpi2'
HIGH = 1
LOW = 0
OUTPUT = 1
INPUT = 0
io = WiringPi::GPIO.new
io.pin_mode(9,OUTPUT)
io.digital_write(9,HIGH)