-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
93 lines (88 loc) · 2.24 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
description = "EnvBoyX"
default_envs = esp32dev
#default_envs = esp12e
[env]
extra_scripts =
pre:build_script/create_embed.py
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
board_build.mcu = esp32
monitor_speed = 115200
upload_speed = 921600
board_build.f_cpu = 80000000L
lib_deps =
joba-1/Joba_Tsl2561@^2.0.10
256dpi/MQTT@^2.4.7
wifwaf/MH-Z19@^1.5.2
sodaqmoja/Sodaq_LPS22HB@^1.0.0
ottowinter/ESPAsyncWebServer-esphome@^1.2.7
seeed-studio/Grove - Barometer Sensor BME280@^1.0.2
bblanchon/ArduinoJson@^6.17.2
robtillaart/AM232X@^0.3.0
claws/BH1750@^1.2.0
olikraus/U8g2@^2.28.8
bodmer/TFT_eSPI@^2.3.41
build_flags =
-Os
-DCORE_DEBUG_LEVEL=2
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DSPI_FREQUENCY=40000000
-DLOAD_GLCD=1
-DCGRAM_OFFSET=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 74880
upload_speed = 921600
lib_deps =
joba-1/Joba_Tsl2561@^2.0.10
256dpi/MQTT@^2.4.7
wifwaf/MH-Z19@^1.5.2
sodaqmoja/Sodaq_LPS22HB@^1.0.0
seeed-studio/Grove - Barometer Sensor BME280@^1.0.2
bblanchon/ArduinoJson@^6.17.2
robtillaart/AM232X@^0.3.0
claws/BH1750@^1.2.0
olikraus/U8g2@^2.28.8
build_flags =
-Os
-DCORE_DEBUG_LEVEL=2
[env:test_esp32dev]
# テストが別のenvになっているのは、 lib_depsがテスト時にコンパイルされてしまい、コンパイルエラーになるため
platform = espressif32
board = esp32dev
framework = arduino
test_framework = unity
test_build_src = false # srcの下はコンパイルしない(デフォルト値) テスト対象は lib/ にいる必要がある
board_build.mcu = esp32
monitor_speed = 115200
upload_speed = 921600
board_build.f_cpu = 80000000L