Advertisement
Tom_Neverwinter

WLED custom usermod, multi relay

Aug 30th, 2022 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ./build custom
  2.  
  3. -----------D1 MINI-------------------------------------
  4. [env:esp8266_multirelay_dallas]
  5. board = d1_mini
  6. platform = ${common.platform_wled_default}
  7. platform_packages = ${common.platform_packages}
  8. upload_speed = 460800
  9. board_build.ldscript = ${common.ldscript_4m1m}
  10. build_unflags = ${common.build_unflags}
  11. build_flags = ${common.build_flags_esp8266}
  12. -D USERMOD_DALLASTEMPERATURE
  13. -D USERMOD_MULTI_RELAY
  14. -D IRPIN=-1
  15. monitor_filters = esp8266_exception_decoder
  16. lib_deps = ${esp8266.lib_deps}
  17. OneWire@~2.3.6
  18.  
  19.  
  20. -----------ESP32-------------------------------------
  21. [env:esp32dev_multirelay_dallas]
  22. board = esp32dev
  23. platform = ${esp32.platform}
  24. platform_packages = ${esp32.platform_packages}
  25. build_unflags = ${common.build_unflags}
  26. build_flags = ${common.build_flags_esp32}
  27. -D USERMOD_DALLASTEMPERATURE
  28. -D USERMOD_MULTI_RELAY
  29. -D IRPIN=-1
  30. lib_deps = ${esp32.lib_deps}
  31. OneWire@~2.3.5
  32. monitor_filters = esp32_exception_decoder
  33. board_build.partitions = ${esp32.default_partitions}
  34.  
  35.  
  36. -----------ESP32 8 relay test optimal?-------------------------------------
  37. [env:esp32dev_multirelay_dallas]
  38. board = esp32dev
  39. platform = ${esp32.platform}
  40. platform_packages = ${esp32.platform_packages}
  41. build_unflags = ${common.build_unflags}
  42. build_flags = ${common.build_flags_esp32}
  43. -D USERMOD_MULTI_RELAY
  44. -D MULTI_RELAY_PINS=21,22,23,25,26,27,32,33
  45. -D MULTI_RELAY_active-high
  46. -D IRPIN=-1
  47. lib_deps = ${esp32.lib_deps}
  48. OneWire@~2.3.5
  49. monitor_filters = esp32_exception_decoder
  50. board_build.partitions = ${esp32.default_partitions}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement