-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
71 lines (66 loc) · 1.89 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
; 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
[tft_module]
build_flags =
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-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 ILI9341_DRIVER
-D USER_SETUP_LOADED
-D LOAD_GFXFF
; 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 Coins ATM"'
'-D FIRMWARE_VERSION="v1.1.1"'
!echo "'-D FIRMWARE_COMMIT_HASH=\"$(head -1 .git-commit-hash 2>/dev/null || echo -n)\"'"
[env:bleskomat32]
board = esp32dev
platform = espressif32@4.3.0
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}
${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
TFT_eSPI@2.4.61
chill1/lnurl@0.4.1
bblanchon/ArduinoJson@6.19.4