Replies: 3 comments 1 reply
-
Please forgive my desire, I want to enable all features, including Ethernet, camera, buzzer, and so on. The number of I/O has prevented this behavior. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am not sure because I never needed to code ioexpander but for arduino I guess you can use this arduino library https://www.arduino.cc/reference/en/libraries/mcp23017/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please forgive my stupidity, I don't know how to define pin. After add #include "mcp23017.h"
#define I2C_MASTER_SCL_IO 21 /*!< gpio number for I2C master clock IO21*/
#define I2C_MASTER_SDA_IO 22 /*!< gpio number for I2C master data IO15*/
#define I2C_MASTER_NUM I2C_NUM_1 /*!< I2C port number for master dev */
#define I2C_MASTER_TX_BUF_DISABLE 0 /*!< I2C master do not need buffer */
#define I2C_MASTER_RX_BUF_DISABLE 0 /*!< I2C master do not need buffer */
#define I2C_MASTER_FREQ_HZ 100000 /*!< I2C master clock frequency */ For example: #define OLED_PIN_SDA 4 Should I change it directly to #define OLED_PIN_SCL MCP23017_PIN0 or not? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to use ESP3D with the MCP23017 component in the components/expander/io_expander/mcp23017 directory? https://github.com/espressif/esp-iot-solution/tree/d7f413d058e7acbc1832305c65d211ee13fd952d/components/expander/io_expander/mcp23017
Beta Was this translation helpful? Give feedback.
All reactions