[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-690039-en":59,"doc-seo-690039-105":95,"doc-similar-690039":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":72,"language":73,"language_code":74,"site_id":75,"html_lang":74,"table_of_contents":76,"faqs":77,"seo_title":78,"seo_description":66,"update_tm":79,"read_time":80,"preview_page_count":81,"preview_urls":82},690039,1099514067415,"Rowan","https://ap-avatar.wpscdn.com/avatar/100002539d78ffe74a7?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779092875211072502","Adafruit MCP23017 I2C GPIO Expander Breakout","Adafruit MCP23017 I2C GPIO Expander Breakout guide explains how to use the board’s 16 GPIO for expanding parallel inputs/outputs over I2C. The document covers power and logic compatibility with 3V/5V, pin functions including SCL/SDA, GPIO port behavior and current limits, optional pullups, and interrupt pins (IA/IB) to avoid polling. It also details default and configurable I2C addressing for chaining up to eight boards, plus available Arduino and CircuitPython resources and wiring examples.","Adafruit MCP23017 I2C GPIO Expander  \nCreated by Liz Clark  \n[https://learn.adafruit.com/adafruit-mcp23017-i2c-gpio-expander](https://learn.adafruit.com/adafruit-mcp23017-i2c-gpio-expander)  \nLast updated on 2026-09-22 12:45:22 PM UTC  \n©Adafruit Industries Page 1 of 22  \nTable of Contents  \nOverview 3  \n\n| Pinouts | 5 |\n| --- | --- |\n| • Power Pins\u003Cbr>• I2C Logic Pins\u003Cbr>• GPIO Pins\u003Cbr>• MCP23017\u003Cbr>• Interrupt Pins\u003Cbr>• Address Pins\u003Cbr>• RST Pin\u003Cbr>• Power LED and Jumper Python & CircuitPython | 12 |\n| • CircuitPython Microcontroller Wiring\u003Cbr>• Python Computer Wiring\u003Cbr>• Python Installation of MCP230xx Library\u003Cbr>• CircuitPython Usage\u003Cbr>• Python Usage\u003Cbr>• Example Code\u003Cbr>Python Docs | 18 |\n| Arduino | 18 |\n| • Wiring\u003Cbr>• Library Installation\u003Cbr>• Load Example\u003Cbr>Arduino Docs | 21 |\n| Downloads | 22 |\n\n• Files  \n• Schematic and Fab Print for MCP23017  \n©Adafruit Industries Page 2 of 22  \nOverview  \nWe’ve gotten a lot of requests for a MCP23017 breakout and we’ve always sorta been like “ehh why not just use the DIP chip? ([http://adafru.it/732](http://adafru.it/732))” but with STEMMA QT we could see the use case for a plug and play version that comes with all the passives onboard. This Adafruit MCP23017 I2C GPIO Expander Breakout has 16 GPIO with matching ground pad.  \nWe particularly like the '17 as an expander for it's simple no-nonsense capability. It runs happily from 3V or 5V logic and power. Each GPIO can be an output driving up to 25mA, so LEDs are no problem. Or, each can be an input, with optional pullup. There are two IRQ pins that are configurable for what inputs to keep track of so no I2C bus polling is required. With 3 address pins, you can have up to 8 on a single bus for a total of 8 x 16 = 128 GPIO all on one I2C bus!  \n©Adafruit Industries Page 3 of 22  \nWe've got solid Arduino () and CircuitPython libraries () with examples, all ready for this chip. But even if you are using some other platform, the MCP23017 is so classic, you'll likely be able to find example code.  \nComes with two sticks of header so you can use it in a breadboard, with some soldering. You can also free-wire buttons by connecting one side to the GPIO (set as input with pullup) and the other side to a ground pad.  \n©Adafruit Industries Page 4 of 22  \nTo get you going fast, we spun up a custom-made PCB in the STEMMA QT form factor () , making it easy to interface with. The STEMMA QT connectors () on either side are compatible with the SparkFun Qwiic () I2C connectors. This allows you to makesolderless connections between your development board and the MCP23017 or to chain it with a wide range of other sensors and accessories using a compatible cable () .  \nQT Cable is not included , but we have a variety in the shop () .  \nPinouts  \n©Adafruit Industries Page 5 of 22  \nThe default I2C address for this board is 0x20 .  \nPower Pins  \nThis breakout works with both 3V and 5V power and logic, so it can be easily used with most microcontrollers from an Arduino to a Feather or something else.  \n• VIN-This is the power pin. To power the board, give it the same power as the logic level of your microcontroller- i.e. for a 5V micro like Arduino, use 5V, or fora 3V micro like a Feather, use 3V.  \n• GND-This is common ground for power and logic.  \n• GND pads-The ground pads (highlighted in white on the board's silk) are available as discrete ground connections for the GPIO.  \n©Adafruit Industries Page 6 of 22  \nI2C Logic Pins  \n• SCL- I2C clock pin, connect to your microcontroller's I2C clock line. This pin is level shifted so you can use 3-5V logic, and there's a 10K pullup on this pin.  \n• SDA- I2C data pin, connect to your microcontroller's I2C data line. This pin is level shifted so you can use 3-5V logic, and there's a 10K pullup on this pin.  \n• STEMMA QT () -These connectors allow you to connect to development boards with STEMMA QT connectors, or to other things, with various associated accessories () .  \nGPIO Pins  \nPins A0-A6 and B0-B6 are bi","cbCaioRhaNy68Tmt","https://ap.wps.com/l/cbCaioRhaNy68Tmt","pdf",6946285,22,"English","en",105,"# Overview\n# Pinouts\n## Power Pins\n## I2C Logic Pins\n## GPIO Pins\n## MCP23017\n## Interrupt Pins\n## Address Pins\n## RST Pin\n# Arduino\n## Wiring\n## Library Installation\n## Load Example\n# Downloads","[{\"question\":\"What does the MCP23017 I2C GPIO expander board provide?\",\"answer\":\"It provides 16 general-purpose GPIO that expand parallel inputs/outputs over I2C. Each GPIO can be configured as an output or an input with optional pull-up.\"},{\"question\":\"How do the I2C address and chaining work?\",\"answer\":\"The default I2C address is 0x20. Address jumpers/pins allow changing the address so multiple boards can share one I2C bus, enabling chaining up to eight boards.\"},{\"question\":\"How can the board avoid I2C bus polling?\",\"answer\":\"Two configurable interrupt pins (IA/INTA and IB/INTB) track selected input changes. With these IRQ lines, monitoring can be event-driven rather than polling the I2C bus.\"}]","Adafruit MCP23017 I2C GPIO Expander Breakout | PDF",1794145753,55,3,[83,87,91],{"page_no":8,"url":84,"width":85,"height":86},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7c1cd39fab212e90652ff5738ae3d96c.webp",983,1390,{"page_no":14,"url":88,"width":89,"height":90},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ef00d3c5c8583bc5fe9ff966cdfe0f72.webp",982,1388,{"page_no":81,"url":92,"width":93,"height":94},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9a50e06637a9b5cb51e8c564b67f24f6.webp",981,1387,{"code":4,"msg":96,"data":97},"ok",{"site_id":75,"language":74,"slug":98,"title":65,"keywords":99,"description":66,"schema_data":100,"social_meta":153,"head_meta":155,"extra_data":157,"updated_unix":79},"adafruit-mcp23017-i2c-gpio-expander-breakout","",{"@graph":101,"@context":152},[102,115,135],{"@type":103,"itemListElement":104},"BreadcrumbList",[105,109,111,113],{"item":106,"name":107,"@type":108,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":110,"name":9,"@type":108,"position":14},"https://docshare.wps.com/document/",{"item":112,"name":30,"@type":108,"position":81},"https://docshare.wps.com/document/technology/",{"item":114,"name":65,"@type":108,"position":19},"https://docshare.wps.com/document/adafruit-mcp23017-i2c-gpio-expander-breakout/690039/",{"url":114,"name":65,"@type":116,"image":117,"author":122,"headline":65,"publisher":124,"fileFormat":127,"inLanguage":74,"description":66,"dateModified":128,"datePublished":129,"encodingFormat":127,"isAccessibleForFree":130,"interactionStatistic":131},"DigitalDocument",{"url":118,"@type":119,"width":120,"height":121},"https://docshare.wps.com/thumbnails/adafruit-mcp23017-i2c-gpio-expander-breakout/690039.png","ImageObject",300,407,{"name":63,"@type":123},"Person",{"url":106,"name":125,"@type":126},"DocShare","Organization","application/pdf","2026-11-19","2026-11-08",true,{"@type":132,"interactionType":133,"userInteractionCount":24},"InteractionCounter",{"@type":134},"ViewAction",{"@type":136,"mainEntity":137},"FAQPage",[138,144,148],{"name":139,"@type":140,"acceptedAnswer":141},"What does the MCP23017 I2C GPIO expander board provide?","Question",{"text":142,"@type":143},"It provides 16 general-purpose GPIO that expand parallel inputs/outputs over I2C. Each GPIO can be configured as an output or an input with optional pull-up.","Answer",{"name":145,"@type":140,"acceptedAnswer":146},"How do the I2C address and chaining work?",{"text":147,"@type":143},"The default I2C address is 0x20. Address jumpers/pins allow changing the address so multiple boards can share one I2C bus, enabling chaining up to eight boards.",{"name":149,"@type":140,"acceptedAnswer":150},"How can the board avoid I2C bus polling?",{"text":151,"@type":143},"Two configurable interrupt pins (IA/INTA and IB/INTB) track selected input changes. With these IRQ lines, monitoring can be event-driven rather than polling the I2C bus.","https://schema.org",{"og:url":114,"og:type":154,"og:title":65,"og:site_name":125,"og:description":66},"article",{"robots":156,"canonical":114},"index,follow",{"doc_id":61,"site_id":75},{"list":159,"token":99},[160,166,172,178,184,190,196,203,209,215],{"doc_id":161,"doc_title":162,"file_type":70,"home_preview_img_url":163,"slug":164,"view_count":34,"category_name":30,"create_tm":165},720588,"MCP4725 12-Bit DAC Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024400689/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=lW9yp4hoPgsnTsNj%2BbYkKD4MfjA%3D","mcp4725-12-bit-dac-tutorial-720588",1795038320,{"doc_id":167,"doc_title":168,"file_type":70,"home_preview_img_url":169,"slug":170,"view_count":39,"category_name":30,"create_tm":171},690044,"Adafruit I2C to 8 Channel Solenoid Driver - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002438306/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=JpAihW1h4ADeOp1fEd1eJIwpGHo%3D","adafruit-i2c-to-8-channel-solenoid-driver-overview",1794145761,{"doc_id":173,"doc_title":174,"file_type":70,"home_preview_img_url":175,"slug":176,"view_count":24,"category_name":30,"create_tm":177},689889,"Adafruit PCA9685 16-Channel Servo Driver","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002212409/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=90Q3d%2B%2Bpx2vgFveK%2BVEWgerbojU%3D","adafruit-pca9685-16-channel-servo-driver",1794133091,{"doc_id":179,"doc_title":180,"file_type":70,"home_preview_img_url":181,"slug":182,"view_count":29,"category_name":30,"create_tm":183},689933,"Adafruit PCF8574 I2C GPIO Expander - Overview - Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002264255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=Rlrr9LyeVZth5eXDtQKrVrSq4Qs%3D","adafruit-pcf8574-i2c-gpio-expander-overview-wiring",1794136907,{"doc_id":185,"doc_title":186,"file_type":70,"home_preview_img_url":187,"slug":188,"view_count":39,"category_name":30,"create_tm":189},689935,"PCF8574DWR - Texas Instruments I/O Expander Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001466325/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=8j%2Fk%2BRe37MGLLe4Eg5V8UnBRCAk%3D","pcf8574dwr-texas-instruments-io-expander-datasheet",1794136912,{"doc_id":191,"doc_title":192,"file_type":70,"home_preview_img_url":193,"slug":194,"view_count":29,"category_name":30,"create_tm":195},700225,"Adafruit STM32F405 Feather Express","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=XCM8%2B%2FE6pMGgZ5yji0%2BZajOBvs4%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":197,"doc_title":198,"file_type":70,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":30,"create_tm":202},690357,"Adafruit LIS3DH Triple-Axis Accelerometer Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002631446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=auFhxqkiinPgZvcoT8aUrOj5N2c%3D","adafruit-lis3dh-triple-axis-accelerometer-breakout-guide",12,1794164631,{"doc_id":204,"doc_title":205,"file_type":70,"home_preview_img_url":206,"slug":207,"view_count":19,"category_name":30,"create_tm":208},689930,"PCF8574 Remote 8-Bit I/O Expander for I2C Bus - Features, Applications, and Description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001466287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=F5NpMwvst3ODmxPqwy42SVybQk8%3D","pcf8574-remote-8-bit-io-expander-for-i2c-bus-features-applications-and-description",1794136899,{"doc_id":210,"doc_title":211,"file_type":70,"home_preview_img_url":212,"slug":213,"view_count":34,"category_name":30,"create_tm":214},720615,"Adafruit 4-Channel ADC Breakouts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=L7XNb5OHSp1jaNkeZsyzDhieVS0%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":216,"doc_title":217,"file_type":70,"home_preview_img_url":218,"slug":219,"view_count":24,"category_name":30,"create_tm":220},720490,"Adafruit INA219 Current Sensor Breakout - Overview, Assembly, Addressing, and Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674161/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=p%2BYLrt7RrQK9ahtu38w8dFPr72I%3D","adafruit-ina219-current-sensor-breakout-overview-assembly-addressing-and-wiring",1795037523]