platformio.ini 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Example config for flashing nodemcuv2 boards via linux serial port
  4. ;
  5. ; Adapt (e.g. platform, board, port) to your environment as needed.
  6. ; Then call platformio.sh to copy the file to all examples.
  7. ; Now cd to the example directory (e.g. Autogain/) and do "pio run"
  8. ; to build it or directly upload with "pio run --target upload".
  9. ; Watch the serial output of your sketch with "pio device monitor".
  10. ;
  11. ; Build options: build flags, source filter
  12. ; Upload options: custom upload port, speed and extra flags
  13. ; Library options: dependencies, extra library storages
  14. ; Advanced options: extra scripting
  15. ;
  16. ; Please visit documentation for the other options and examples
  17. ; http://docs.platformio.org/page/projectconf.html
  18. [platformio]
  19. ; uncomment one, if you want to build only one
  20. ; env_default = nodemcuv2
  21. ; env_default = nano328
  22. [env:nodemcuv2]
  23. ; TSL <-> ESP8266
  24. ; ------------
  25. ; GND <-> GND
  26. ; VCC <-> 3V
  27. ; SCL <-> D1
  28. ; SDA <-> D2
  29. platform = espressif8266
  30. board = nodemcuv2
  31. framework = arduino
  32. build_flags = -Wall
  33. monitor_speed = 115200
  34. upload_speed = 230400
  35. upload_resetmethod = nodemcu
  36. ;usually upload port is autodetected
  37. ;upload_port = /dev/ttyUSB[1-9]
  38. [env:nano328]
  39. ; TSL <-> NANO
  40. ; ------------
  41. ; GND <-> GND
  42. ; VCC <-> 3V3
  43. ; SCL <-> A5
  44. ; SDA <-> A4
  45. platform = atmelavr
  46. board = nanoatmega328
  47. framework = arduino
  48. build_flags = -Wall
  49. monitor_speed = 115200