platformio.ini 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. src_dir = .
  20. lib_dir = ../..
  21. ; uncomment one, if you want to build only one
  22. ; env_default = nodemcuv2
  23. ; env_default = nano328
  24. [env:nodemcuv2]
  25. ; TSL <-> ESP8266
  26. ; ------------
  27. ; GND <-> GND
  28. ; VCC <-> 3V
  29. ; SCL <-> D1
  30. ; SDA <-> D2
  31. platform = espressif8266
  32. board = nodemcuv2
  33. framework = arduino
  34. build_flags = -Wall
  35. monitor_speed = 115200
  36. upload_speed = 230400
  37. upload_resetmethod = nodemcu
  38. ;usually upload port is autodetected
  39. ;upload_port = /dev/ttyUSB[1-9]
  40. [env:nano328]
  41. ; TSL <-> NANO
  42. ; ------------
  43. ; GND <-> GND
  44. ; VCC <-> 3V3
  45. ; SCL <-> A5
  46. ; SDA <-> A4
  47. platform = atmelavr
  48. board = nanoatmega328
  49. framework = arduino
  50. build_flags = -Wall
  51. monitor_speed = 115200
  52. ;upload_port = /dev/ttyUSB[1-9]