pinout.vvzero.com/src/en-GB/pin/pin-5.md

12 lines
218 B
Markdown
Raw Normal View History

2015-03-25 08:29:41 +08:00
SCL is one of the i2c pins on the Pi, [learn more about i2c](/pinout/i2c).
2015-02-25 06:07:11 +08:00
```python
require 'wiringpi2'
HIGH = 1
LOW = 0
OUTPUT = 1
INPUT = 0
io = WiringPi::GPIO.new
io.pin_mode(9,OUTPUT)
io.digital_write(9,HIGH)
```