We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c34bb commit 5d09b95Copy full SHA for 5d09b95
1 file changed
CMakeLists.txt
@@ -19,3 +19,10 @@ idf_component_register(
19
REQUIRES driver M5HAL
20
PRIV_REQUIRES esp_adc esp_timer M5Utility
21
)
22
+
23
+# Optionally link M5Unified only when it is already part of the build (e.g. a M5Unified-based
24
+# app or example). This puts M5GFX's <utility/I2C_Class.hpp> on adapter_i2c.cpp's include path,
25
+# so the real m5::I2C_Class adapter is compiled instead of the stub. Pure ESP-IDF builds without
26
+# M5Unified are unaffected (the component is simply skipped). Available since IDF v5.0.
27
+# Both names are listed: m5stack__M5Unified (registry/git) and M5Unified (local components/).
28
+idf_component_optional_requires(PRIVATE m5stack__M5Unified M5Unified)
0 commit comments