seanshpark / rpigpio2

RPi GPIO with node.js v2
Apache License 2.0
0 stars 0 forks source link

Add MCP23017 #4

Closed seanshpark closed 5 months ago

seanshpark commented 5 months ago

Add I2C to 16 bit parallel expander

seanshpark commented 5 months ago
       +---------+
 B0 -- | 01    28| -- A7
 B1 -- | 02    27| -- A6
 B2 -- | 03    26| -- A5
 B3 -- | 04    25| -- A4
 B4 -- | 05    24| -- A3
 B5 -- | 06    23| -- A2
 B6 -- | 07    22| -- A1
 B7 -- | 08    21| -- A0
VDD -- | 09    20| -- (INTA)
VSS -- | 10    19| -- (INTB)
    -- | 11    18| -- /RESET -- VDD
SCL -- | 12    17| -- A2 -- GND
SDA -- | 13    16| -- A1 -- GND
    -- | 14    15| -- A0 -- GND
       +---------+

VDD - +3.3V
VSS - GND
seanshpark commented 5 months ago
$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  
seanshpark commented 5 months ago

done