-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
79 lines (71 loc) · 2.25 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
; Copyright 2020 Marco Massarelli
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
; 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
[common]
build_flags =
-DFW_VERSION='"0.5.2"'
-DENABLE_PCB_LED
;extra_scripts = pre:extra_script.py
monitor_speed = 115200
monitor_port = /dev/cu.SLAB_USBtoUART
upload_speed = 921600
upload_port = /dev/cu.SLAB_USBtoUART
lib_deps_external =
ArduinoJson
AsyncTCP
ESP Async WebServer
PubSubClient
[env:tinypico]
platform = espressif32
board = tinypico
framework = arduino
; Options are: 240, 160, 80, 40, 20 and 10 MHz
; The minimum frequency for stable WiFi is 80Mhz
board_build.f_cpu = 240000000L
board_build.flash_mode = qio
monitor_speed = ${common.monitor_speed}
monitor_port = ${common.monitor_port}
upload_port = ${common.upload_port}
upload_speed = ${common.upload_speed}
; upload_protocol = espota
; upload_port = "myesp32.local"
; upload_flags = -p 3232
;extra_scripts = ${common.extra_scripts}
build_flags =
${common.build_flags}
; Sets MQTT max packet size to 512 to prevent errors
-DMQTT_MAX_PACKET_SIZE=512
; Disables PSRAM (the TinyPICO doesn't have it)
-UBOARD_HAS_PSRAM
; None = 0
; Error = 1
; Warn = 2
; Info = 3
; Debug = 4
; Verbose = 5
-DCORE_DEBUG_LEVEL=0
-DENABLE_TP_LED
; Enables the fix for rotated RGB LED on the `Ugo-ESP32 TinyPico v2.0` PCB
;-DENABLE_V_0_2_PCB_LED_FIX
lib_deps =
${common.lib_deps_external}
TinyPICO Helper Library