Skip to content

Commit 4bcb694

Browse files
authored
Merge pull request #35 from Johnlon/master
Documentation improvement
2 parents 6bbe9d5 + 6c1200c commit 4bcb694

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,27 @@ All text above must be included in any redistribution
1313
To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_MCP23017. Check that the Adafruit_MCP23017 folder contains Adafruit_MCP23017.cpp and Adafruit_MCP23017.h
1414

1515
Place the Adafruit_MCP23017 library folder your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
16+
17+
Pin Addressing
18+
==============
19+
20+
When using single pin operations such as _pinMode(pinId, dir)_ or _digitalRead(pinId)_ or _digitalWrite(pinId, val)_ then the pins are addressed using the ID's below. For example, for set the mode of _GPB0_ then use _pinMode(8, ...)_.
21+
22+
Physial Pin #| Pin Name | Pin ID
23+
----|------|------------------------------
24+
21 | GPA0 | 0
25+
22 | GPA1 | 1
26+
23 | GPA2 | 2
27+
24 | GPA3 | 3
28+
25 | GPA4 | 4
29+
26 | GPA5 | 5
30+
27 | GPA6 | 6
31+
28 | GPA7 | 7
32+
1 | GPB0 | 8
33+
2 | GPB1 | 9
34+
3 | GPB2 | 10
35+
4 | GPB3 | 11
36+
5 | GPB4 | 12
37+
6 | GPB5 | 13
38+
7 | GPB6 | 14
39+
8 | GPB7 | 15

0 commit comments

Comments
 (0)