-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplatformio.ini
62 lines (49 loc) · 1.52 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
; Reference https://docs.platformio.org/en/latest/platforms/espressif32.html
[platformio]
default_envs = m5stick-c
src_dir = alpha
; Keep sensitive data in environment variables
;
; Unix
; export WIFI_SSID='\"my\ ssid\ name\"'
; export WIFI_PASS='\"my\ password\"'
;
; Windows
; set WIFI_SSID='"my ssid name"'
; set WIFI_PASS='"my password"'
[common]
; DEBUG Levels: 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
debug_level = 4
lib_deps_external =
ArduinoJson
framework = arduino
build_type = debug
wifi_ssid = '"TEST_SSID"'
wifi_pass = '"TEST_PASSWORD"'
[env:m5stick-c]
board = m5stick-c
platform = https://github.com/platformio/platform-espressif32.git
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
framework = ${common.framework}
upload_speed = 1500000
; Library options
lib_deps =
${common.lib_deps_external}
https://github.com/bettr-xyz/M5StickC.git
; change microcontroller
board_build.mcu = esp32
; change MCU frequency
board_build.f_cpu = 240000000L
; Select one of the built-in tables
; https://github.com/espressif/arduino-esp32/tree/master/tools/partitions
; https://github.com/espressif/esp-idf/tree/master/components/partition_table
board_build.partitions = no_ota.csv
build_type = ${common.build_type}
; set build flags such as dynamic variables
build_flags =
-DWIFI_SSID=${common.WIFI_SSID}
-DWIFI_PASS=${common.WIFI_PASS}
-DCORE_DEBUG_LEVEL=${common.debug_level}
monitor_speed = 115200
monitor_filters = default, time, esp32_exception_decoder