WLED/usermods/seven_segment_display_reloaded/setup_deps.py

10 wiersze
312 B
Python
Czysty Zwykły widok Historia

Import('env')
usermods = env.GetProjectOption("custom_usermods","").split()
# Check for partner usermods
if "SN_Photoresistor" in usermods:
env.Append(CPPDEFINES=[("USERMOD_SN_PHOTORESISTOR")])
2025-03-29 00:15:36 +00:00
if any(mod in ("BH1750_v2", "BH1750") for mod in usermods):
env.Append(CPPDEFINES=[("USERMOD_BH1750")])