WLED/usermods/seven_segment_display_reloaded/setup_deps.py

10 wiersze
276 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")])
if "BH1750_v2" in usermods:
env.Append(CPPDEFINES=[("USERMOD_BH1750")])