-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathplatformio.ini
More file actions
153 lines (145 loc) · 5.86 KB
/
platformio.ini
File metadata and controls
153 lines (145 loc) · 5.86 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[platformio]
default_envs = Unknown
[env]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32/platform-espressif32.zip
framework = espidf, arduino
platform_packages =
framework-espidf @ https://github.com/Szybet/esp-idf/releases/download/5.5.1/esp-idf-v5.5.1.tar.xz
board_build.partitions = resources/tools/fs/in/partitions.csv # You MUST specify offset for every single partition.
monitor_speed = 115200 # Smaller values will make the serial info look better but the esp work slower...
# Higher numbers are unsupported by the usb chip, sometimes they work but are unstable. It's the CP2102 IC
# Available baud rates:
# 300, 600, 1200, 1800, 2400, 4000, 4800, 7200, 9600, 14400, 16000, 19200, 28800, 38400,
# 51200, 56000, 57600, 64000, 76800, 115200, 128000, 153600, 230400, 250000, 256000,
# 460800, 500000, 576000, 921600
monitor_filters = esp32_exception_decoder
lib_ldf_mode = chain
lib_compat_mode = off
lib_deps =
https://github.com/PaulStoffregen/Time.git#a18e50dcea4ee17285d732d39e7bc559482d1d3d
https://github.com/adafruit/Adafruit-GFX-Library.git#87e15509a9e16892e60947bc4231027882edbd34
https://github.com/adafruit/Adafruit_BusIO.git#15fbda592d1b237b0a92cfb91841adb01a34efd9
https://github.com/JChristensen/DS3232RTC.git#ef57d34517dec83029288e771add6004b46fba04
https://github.com/arduino-libraries/NTPClient.git#1aea2928a0e307fc79f0e815632048fccad9bc0b
https://github.com/bblanchon/ArduinoJson.git#22dd4da3afc8341b1faedf6433d506b84cfd0da7 # It's for ESP32-Bitcoin-BlockClock-Library and open meteo
https://github.com/arduino-libraries/Arduino_JSON.git#c282cb693e4697fbd0c136719461922fb87dd43f # Used by olsin2posix
https://github.com/signetica/MoonPhase.git#d6944c576b418a897ad5cf158041389a7c668a04
# https://github.com/ESP32Async/AsyncTCP.git#5e7e609402eb78b061a93bac6322981543030360
# https://github.com/ESP32Async/ESPAsyncWebServer.git#d9b612a2ce8f978affdda9fd9aaca5ca76b9404c
# They also do need commit lockins, for forks
https://github.com/Szybet/Rtc_Pcf8563.git#49fd0225148c127a37854b9447a97d859b879705
https://github.com/Szybet/GxEPD2-watchy.git#1a1593255df2eae4aa163fea21f542d7c7798bd0
https://github.com/Szybet/StableBMA.git#6966e0b2fe94a180d100404dae8a0c2881434c97
https://github.com/Szybet/Grafici-GFX.git#fede954129bfae67cced6d87f340ccba20cd809e
https://github.com/Szybet/Olson2POSIX.git#744f2d0c64102c7bdc0f11b68e0e4a3a79f3da2c
https://github.com/Szybet/SmallRTC.git#36469c0a42b1122693df0c7aa83c1571d5f42bd1
https://github.com/Szybet/open-meteo-arduino.git#3289bcbaaa6a053f673a13f220f928c4126315c0
build_flags =
-Isrc/hardware/acc/lib/bma4/
-Isrc/hardware/acc/lib/bma5/
-Isrc/defines/
-Isrc/hardware/rtcMem/
-Isrc/ui/watchface/watchfaceManagers/wManageGSR/
-Wno-deprecated-declarations
-Wno-maybe-uninitialized
-fno-if-conversion
-Wno-format
-Wno-stringop-truncation
-Wno-unused-value
-Wno-use-after-free
-Wno-unused-variable
-Wno-unused-function
# Screen options
# Don't enable all fixes simply, but try all possible combinations of them (enabled, disabled)
-D SCREEN_PARTIAL_GREY_WORKAROUND=1 # Experimental, at your own risk! But ON at default, still at your own risk!
-D SCREEN_FULL_WHITE_WORKAROUND=0 # If your screen goes white after a full refresh, try this
-D SCREEN_FADING_AWAY_2_WORKAROUND=0 # If your screen still fades away even with SCREEN_PARTIAL_GREY_WORKAROUND enabled, try this, at your own risk!
-D SCREEN_BLACK_BORDER=0 # Make the border of the screen black
!echo '-D GIT_COMMIT_HASH=\\"'$(git log -1 --format=%%h)'\\"'
!echo '-D GIT_BRANCH=\\"'$(git rev-parse --abbrev-ref HEAD)'\\"'
!echo '-D BUILD_TIME=\\"'$(date '+%%Y-%%m-%%d')'\\"'
-Wl,-z,noexecstack # Rust lib workaround
-D IDF_CCACHE_ENABLE=1 # Not sure, but https://github.com/platformio/platformio-core/issues/5018#issuecomment-3016647050
# Experimental!
-funsafe-math-optimizations
# -ffinite-math-only This breaks temperature readings
-fno-math-errno
-ffloat-store
board_build.embed_txtfiles =
resources/tools/buildTime/certs/https_server.crt
resources/tools/buildTime/certs/rmaker_mqtt_server.crt
resources/tools/buildTime/certs/rmaker_claim_service_server.crt
resources/tools/buildTime/certs/rmaker_ota_server.crt
extra_scripts = pre:resources/tools/buildTime/preBuild.py
custom_component_remove =
espressif/esp_hosted
espressif/esp_wifi_remote
espressif/esp-dsp
espressif/network_provisioning
espressif/esp-zboss-lib
espressif/esp-zigbee-lib
espressif/esp_rainmaker
espressif/rmaker_common
espressif/esp_insights
espressif/esp_diag_data_store
espressif/esp_diagnostics
espressif/cbor
espressif/qrcode
espressif/esp-sr
espressif/libsodium
espressif/esp-modbus
chmorgan/esp-libhelix-mp3
espressif/esp32-camera
# Added by me
espressif/esp_modem
[env:Unknown]
# Like, don't?
[env:Watchy_1]
board = esp32dev
upload_speed = 256000
build_flags =
${env.build_flags}
-D ATCHY_VER=WATCHY_1
[env:Watchy_1_5]
board = esp32dev
upload_speed = 256000
build_flags =
${env.build_flags}
-D ATCHY_VER=WATCHY_1_5
[env:Watchy_2]
board = esp32dev
upload_speed = 256000
build_flags =
${env.build_flags}
-D ATCHY_VER=WATCHY_2
[env:Watchy_3]
board = esp32-s3-devkitc-1
upload_speed = 460800
board_build.mcu = esp32s3
build_flags =
${env.build_flags}
-D ATCHY_VER=WATCHY_3
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1 # https://github.com/espressif/arduino-esp32/discussions/7985
-D ARDUINO_ESP32S3_DEV=1 # Experimental, probably good, or not needed. It's maybe a solution for the screen going black
-D SMALL_RTC_NO_DS3232=1
-D SMALL_RTC_NO_PCF8563=1
build_unflags =
${env.build_unflags}
-Wl,--end-group
[env:Yatchy]
board = esp32-c6-devkitm-1
upload_speed = 921600
board_build.mcu = esp32c6
build_flags =
${env.build_flags}
-D ATCHY_VER=YATCHY
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D SMALL_RTC_NO_DS3232=1
-D SMALL_RTC_NO_PCF8563=1
-D SMALL_RTC_NO_EXT0=1
-D GXEPD_CS_DISABLE=1
build_unflags =
${env.build_unflags}
-Wl,--end-group