Skip to content

Instantly share code, notes, and snippets.

@hpsaturn
Last active March 9, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpsaturn/33935702ea88125676ef7db65532777d to your computer and use it in GitHub Desktop.
Save hpsaturn/33935702ea88125676ef7db65532777d to your computer and use it in GitHub Desktop.
Basic PlatformIO ini file for build Arduino .ino projects. (only put together ino file)
[platformio]
src_dir = .
[wifi]
; ssid = **s
; password = ***
ssid = ${sysenv.PIO_WIFI_SSID}
password = ${sysenv.PIO_WIFI_PASSWORD}
[common_env_data]
framework = arduino
upload_speed = 1500000
monitor_speed = 115200
lib_deps =
adafruit/Adafruit BusIO @ 1.6.0
https://github.com/ZinggJM/GxEPD2.git
sparkfun/SparkFun SCD30 Arduino Library @ ^1.0.10
https://github.com/hpsaturn/M5-CoreInk.git#fix_inkEnable_issue
build_flags =
'-DWIFI_SSID="${wifi.ssid}"'
'-DWIFI_PASS="${wifi.password}"'
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = ${common_env_data.framework}
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
lib_deps = ${common_env_data.lib_deps}
build_flags = ${common_env_data.build_flags}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment