forked from morgendagen/riden-dongle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
56 lines (52 loc) · 1.24 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
; PlatformIO Project Configuration File
;
; SPDX-FileCopyrightText: 2024 Peder Toftegaard Olsen
;
; SPDX-License-Identifier: MIT
[platformio]
default_envs = esp12e
[env]
platform = espressif8266
framework = arduino
lib_deps =
sfeister/SCPI_Parser @ ^2.2.0
emelianov/modbus-esp8266 @ ^4.1.0
wnatth3/WiFiManager @ 2.0.16-rc.2
full-stack-ex/TinyTemplateEngine@^1.1
build_flags =
-D DEFAULT_UART_BAUDRATE=9600
-D USE_FULL_ERROR_LIST
extra_scripts =
pre:scripts/get_version.py
[env:esp12e]
board = esp12e
build_flags =
${env.build_flags}
-Os # optimize for size
-D WM_NODEBUG
-D LED_BUILTIN=2
extra_scripts =
${env.extra_scripts}
pre:scripts/get_build_time.py
scripts/make_gz.py
upload_port =
upload_resetmethod = nodemcu
upload_speed = 115200
monitor_port = /dev/tty.usbserial-11430
monitor_speed = 74880
[env:nodemcuv2]
board = nodemcuv2
build_flags =
${env.build_flags}
-D LED_BUILTIN=2
-D MODBUS_USE_SOFWARE_SERIAL
-D MODBUS_RX=D5 # GPIO 14
-D MODBUS_TX=D6 # GPIO 15
# -D WM_DEBUG_LEVEL=DEBUG_DEV
# -D MODBUSRTU_DEBUG
# -D MODBUSIP_DEBUG
upload_port = /dev/cu.SLAB_USBtoUART
upload_resetmethod = nodemcu
upload_speed = 115200
monitor_port = /dev/cu.SLAB_USBtoUART
monitor_speed = 74880