forked from slundell/dps_charger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
70 lines (56 loc) · 2.29 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]
src_dir = C:\src\dps\src
default_envs = lolin_d32_pro
; Instead of sub-projects (which platformio does not really support) I change the src_filter. Uncomment the one to compile, comment the others.
[projects]
src_filter=+<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<i2c_scanner.cpp> -<dps_re.cpp> -<dps_charger_digital.cpp> -<tests.cpp> ; dps_charger_analogue
;src_filter=+<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<i2c_scanner.cpp> -<dps_re.cpp> -<dps_charger_analogue.cpp> -<tests.cpp> ; dps_charger_digital
;src_filter=+<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<i2c_scanner.cpp> -<dps_charger_analogue.cpp> -<dps_charger_digital.cpp> -<tests.cpp> ; dps_re
;src_filter=+<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<dps_re.cpp> -<dps_charger_analogue.cpp> -<dps_charger_digital.cpp> -<tests.cpp> ; i2c_scanner
;src_filter=+<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<dps_re.cpp> -<dps_charger_analogue.cpp> -<dps_charger_digital.cpp> -<i2c_scanner.cpp> ; tests
[env:lolin_d32_pro]
platform = espressif32
framework = arduino
board = lolin_d32_pro
upload_protocol = espota
upload_flags =
--port=3232
upload_port=10.0.0.183
;upload_flags=--auth=arduino
;upload_port=COM5
build_flags = -D ESP32
src_filter=${projects.src_filter}
;;[env:lolin_d1_mini]
;;platform = espressif8266
;;board = d1_mini
;;framework = arduino
;;build_flags = -D ESP8266
;;upload_flags =
; ;--port=8266
; ;;upload_port=10.0.0.167
; ;board_build.f_cpu = 160000000L
;;upload_protocol = espota
;;src_filter=${projects.src_filter}
;;;
;;
;;[env:lolin_d1_mini_pro];
;;platform = espressif8266
;;board = d1_mini
;;framework = arduino
;;board_build.f_cpu = 160000000L
;;build_flags = -D ESP8266
;;#upload_port=COM5
;;upload_flags =
; ;--port=8266
;;upload_port=10.0.0.187
;;upload_protocol = espota
;;src_filter=${projects.src_filter}