-
Notifications
You must be signed in to change notification settings - Fork 27
/
platformio.ini
81 lines (75 loc) · 2.02 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
; 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 = bleskomat32
src_dir = src
include_dir = include
[sd_module]
build_flags =
-D USE_SPI_MODE
-D SD_CS=15
-D SD_MOSI=13
-D SD_MISO=12
-D SD_SCK=14
[tft_module]
build_flags =
-D TFT_WIDTH=128
-D TFT_HEIGHT=160
-D TFT_MOSI=23
-D TFT_MISO=19
-D TFT_SCLK=18
-D TFT_DC=2
-D TFT_RST=4
-D TFT_CS=22
-D ST7735_DRIVER
-D USER_SETUP_LOADED
-D LOAD_GLCD
-D LOAD_FONT2
; https://github.com/pellepl/spiffs/wiki/Configure-spiffs
[spiffs]
build_flags =
-D SPIFFS_SINGLETON
-D SPIFFS_TEMPORAL_FD_CACHE
-D SPIFFS_CACHE
-D SPIFFS_CACHE_WR
-D SPIFFS_PAGE_CHECK
-D SPIFFS_COPY_BUFFER_STACK
; Use single quotes around whole build flag definition + double-quotes around value.
; Each build flag should be printed on its own line.
[firmware]
build_flags =
'-D FIRMWARE_NAME="Bleskomat DIY"'
'-D FIRMWARE_VERSION="v1.3.0"'
!echo "'-D FIRMWARE_COMMIT_HASH=\"$(head -1 .git-commit-hash 2>/dev/null || echo -n)\"'"
[env:bleskomat32]
board = esp32dev
platform = [email protected]
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32 @ ~3.20003.0
upload_speed = 921600
; https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html
board_build.partitions = no_ota.csv
build_flags =
${firmware.build_flags}
${sd_module.build_flags}
${tft_module.build_flags}
${spiffs.build_flags}
-D MONITOR_SPEED=115200
-D LOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-Wno-unknown-pragmas
; The following flags are needed for std::stoi, std::to_string, etc:
-D _GLIBCXX_USE_C99 -std=c++11
monitor_speed = 115200
lib_deps =
https://github.com/chill117/QRCode.git#v0.0.2
chill1/[email protected]
bblanchon/[email protected]