SKU:N/A
M5IOE1 is a versatile I2C-based I/O expansion library designed for M5Stack devices, compatible with both Arduino and ESP-IDF frameworks. It significantly extends system capabilities by providing additional digital I/Os with interrupt support, 12-bit ADC channels, PWM outputs, and a built-in NeoPixel LED driver.
- N/A
- N/A
If used alongside M5Unified, include it before M5IOE1:
#include <M5Unified.h> // ✓ must come first
#include <M5IOE1.h>#include <M5IOE1.h> // ✗ causes i2c_config_t conflict
#include <M5Unified.h>Why: On ESP-IDF ≥ 5.3.0 without
CONFIG_I2C_BUS_BACKWARD_CONFIG,i2c_bus.hdefines its owni2c_config_t. Including it beforeM5Unified(which pulls indriver/i2c.h) creates a conflicting declaration error. Reversing the order avoids this.Alternatively, enable
CONFIG_I2C_BUS_BACKWARD_CONFIGin menuconfig to remove the restriction.
Use begin(&M5.In_I2C, addr, freq) instead — M5GFX already owns the I2C bus and the two drivers cannot share it.