Giter Site home page Giter Site logo

esp32-mcp23017-demo's Introduction

Interfacing an MCP23017 I2C GPIO expander with ESP32

The MCP23017 is an I2C bus GPIO expander. This is an demonstration application for the ESP32 in the ESP-IDF environment.

Usage

To use this application, you must have the ESP-IDF environment installed. After cloning, you will need to run make menuconfig to set up the proper make files and then make flash to flash it onto your device.

Note: The MCP23017 component in this demonstration does not yet support interrupt functionality. Also, the intent isn't really to duplicate Arduino digitalWrite type functionality. After spending a little time with the datasheet and learning how to set and clear bits, you can easily accomplish what you need without trying to emulate Arduino.

esp32-mcp23017-demo's People

Contributors

nsbum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esp32-mcp23017-demo's Issues

MCP23017 ESP IDF

hi everyone i try to use MCP2307 module with esp32, that work well for output pin, but i can use it in INPUT mode.

is interrupt fixed ?
and i dont understand too those fonction :

esp_err_t mcp23x17_get_int_out_mode(mcp23x17_t *dev, mcp23x17_int_out_mode_t *mode);
esp_err_t mcp23x17_set_int_out_mode(mcp23x17_t *dev, mcp23x17_int_out_mode_t mode);
esp_err_t mcp23x17_port_get_mode(mcp23x17_t *dev, uint16_t *val);
esp_err_t mcp23x17_port_set_mode(mcp23x17_t *dev, uint16_t val);
esp_err_t mcp23x17_port_read(mcp23x17_t *dev, uint16_t *val);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.