Giter Site home page Giter Site logo

esp32-mcp23008's Introduction

MCP23008

ESP32 component for the MCP23008 I2C GPIO expander, for use with the ESP-IDF build framework.

The ESP32 is a versatile little IoT SoC device that can handle a number of microcontroller tasks for automation and other projects. One of the problems with the ESP32 is the shortage of GPIO pins. Many of the pins on the device had dedicated functions. Some projects require a larger number of open pins. Therefore, this device and similar GPIO expanders can be used to fill the void.

The use of this component is straightfoward. If the I2C bus in use has not already been initialized, you'll need to take care of its initialization in advance of calling mcp23008_init.

esp32-mcp23008's People

Contributors

nsbum avatar

Watchers

 avatar  avatar

esp32-mcp23008's Issues

Error on Line 165 in mcp23008_port_set_bit function

To set the bit, the operation should be |=, not &=

so, the function should be:
esp_err_t mcp23008_port_set_bit(mcp23008_t *mcp, uint8_t b) {
mcp->current |= (1 << b);
return mcp23008_write_port(mcp, mcp->current);
}
otherwise, good job on the library...

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.