platformio.ini 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; http://docs.platformio.org/page/projectconf.html
  10. [platformio]
  11. #env_default = esp12e
  12. env_default = d1_mini
  13. [common_env_data]
  14. # Automaton + PR #50 (https://github.com/tinkerspy/Automaton/pull/50)
  15. # Automaton-Esp8266 + PR #5 (https://github.com/tinkerspy/Automaton-Esp8266/pull/5)
  16. # 334 = Adafruit MCP23017 Arduino Library
  17. lib_deps_ext = https://github.com/euphi/Automaton.git
  18. https://github.com/euphi/Automaton-Esp8266.git
  19. MFRC522
  20. Adafruit MCP23017 Arduino Library
  21. lib_deps_int = Hash
  22. [env:esp12e]
  23. platform = espressif8266
  24. board = d1_mini
  25. framework = arduino
  26. lib_ldf_mode=chain+
  27. lib_deps= ${common_env_data.lib_deps_int}
  28. ${common_env_data.lib_deps_ext}
  29. # Build for ESP-ADC (in-circuit), 512kb Flash only!
  30. build_flags = -Wl,-Tesp8266.flash.512k64.ld
  31. # ck: DTR connected to GPIO0, RTS connected to RESET
  32. upload_resetmethod = ck
  33. upload_speed = 460800
  34. [env:d1_mini]
  35. platform = espressif8266
  36. board = d1_mini
  37. framework = arduino
  38. lib_ldf_mode=chain+
  39. lib_deps= ${common_env_data.lib_deps_int}
  40. ${common_env_data.lib_deps_ext}
  41. upload_speed = 460800