-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
68 lines (55 loc) · 1.78 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
; 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 = nodemcuv2
[defines]
serial_speed = 115200
display = DISPLAY_SERIAL
[env]
# https://github.com/homieiot/homie-esp8266/issues/711
;platform = espressif8266
platform = espressif8266 @ 2.5.0
framework = arduino
upload_port = /dev/ttyUSB*
upload_speed = 921600
monitor_speed = ${defines.serial_speed}
; set CPU frequency to 80MHz (default) or 160MHz
board_build.f_cpu = 80000000L
;board_build.f_cpu = 160000000L
build_flags =
; SSL encryption for MQTT connections
; all other network connections still can not be encrypted like HTTP or OTA
; note: comment for use "espressif8266 @ 2.5.0" (https://github.com/me-no-dev/ESPAsyncTCP/issues/170)
-D ASYNC_TCP_SSL_ENABLED=1
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
; Ensure reliable OTA updates
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; Disable the publishing of the device identifier via mDNS protocol
; reduces the firmware size by about 6400 bytes
-D HOMIE_MDNS=0
; Need to upload the configuration to the SPIFFS before starting the device
; reduces the firmware size by about 50000 bytes
;-D HOMIE_CONFIG=0
-D SERIAL_SPEED=${defines.serial_speed}
lib_deps =
;elbowz/yahnc
https://github.com/elbowz/yahnc.git#master
;../yahnc/
[env:nodemcuv2]
board = nodemcuv2
[env:esp12e]
board = esp12e
[env:debug]
board = ${env:nodemcuv2.board}
;build_type = debug
build_flags =
${env.build_flags}
-D DEBUG=1
;-D RTTTL_NONBLOCKING_INFO=1