Philip Howard | b1169c8 | 2013-03-27 23:08:14 +0000 | [diff] [blame^] | 1 | import wiringpi2 |
2 | |||||
3 | pin_base = 65 | ||||
4 | i2c_addr = 0x20 | ||||
5 | pins = [65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80] | ||||
6 | |||||
7 | wiringpi2.wiringPiSetup() | ||||
8 | wiringpi2.mcp23017Setup(pin_base,i2c_addr) | ||||
9 | |||||
10 | for pin in pins: | ||||
11 | wiringpi2.pinMode(pin,1) | ||||
12 | wiringpi2.digitalWrite(pin,1) | ||||
13 |