forked from hpsaturn/CanAirIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
83 lines (75 loc) · 2.37 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
; 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]
default_envs = ttgo-display
[common_env_data]
platform = [email protected]
framework = arduino
board = esp32dev
monitor_speed = 115200
build_flags =
-Os
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DENABLE_TFT=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1 ; Library will add offsets required
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4 ; Display backlight control pin
-DTFT_BACKLIGHT_ON=1 ; HIGH or LOW are options
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=40000000 ; Maximum for ILI9341
-DSPI_READ_FREQUENCY=6000000 ; 6 MHz is the maximum SPI read speed for the ST7789V
-DCORE_DEBUG_LEVEL=3 ; Info level for development, please comment it for production
lib_deps =
https://github.com/hpsaturn/HPMA115S0.git@23cbd44
Adafruit Unified [email protected]
Adafruit BME680 [email protected]
https://github.com/hpsaturn/Influx-Arduino.git@ce16fc3
# Repartition esp32 for more space (wifi/bt)
board_build.partitions = min_spiffs.csv
[env:ttgo-display]
platform = ${common_env_data.platform}
board = ${common_env_data.board}
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
lib_deps = ${common_env_data.lib_deps}
build_flags = ${common_env_data.build_flags}
# Repartition esp32 for more space (wifi/bt)
board_build.partitions = min_spiffs.csv
[env:ttgo-display-ota]
platform = ${common_env_data.platform}
board = ${common_env_data.board}
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
lib_deps = ${common_env_data.lib_deps}
build_flags = ${common_env_data.build_flags}
upload_protocol = espota
upload_port = 'CanAirIO.local' ; set IP if it fails
upload_flags =
--port=3232
--auth=CanAirIO ; => set OTA password
# Repartition esp32 for more space (wifi/bt)
board_build.partitions = min_spiffs.csv