-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
88 lines (72 loc) · 2.42 KB
/
Copy pathplatformio.ini
File metadata and controls
88 lines (72 loc) · 2.42 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
; LumenPnP ESP32 Addons - HX711 Load Cell Z-Probe + VL53L4CX Laser Z-Probe
; PlatformIO project for ESP32 WROOM modules used as OpenPnP G-code accessories
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
; Serial monitor
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; Upload settings (match your board / USB bridge)
upload_speed = 921600
; If flashing fails, try 460800 or 115200
; Libraries
lib_deps =
; Classic, widely used HX711 driver
bogde/HX711@^0.7.5
; ST official VL53L4CX driver (Adafruit breakout #5425)
https://github.com/stm32duino/VL53L4CX.git
; Build options
build_flags =
-D CORE_DEBUG_LEVEL=0
; You can add -D HX711_DOUT_PIN=xx -D HX711_SCK_PIN=yy here or override in code
; Only build the real firmware (exclude the separate test sketch)
build_src_filter =
+<*.cpp>
-<hx711_test.cpp>
-<vl53l4cx_test.cpp>
; For more advanced non-blocking HX711, consider switching later to:
; olkal/HX711_ADC@^1.2.0
; Optional: use a more specific board if you have a particular devkit
; board = node32s
; board = lolin_d32
; board = esp32doit-devkit-v1
; ------------------------------------------------------------
; Test environment for HX711 wiring verification only
; Usage:
; pio run -e esp32dev_hx711_test -t upload --upload-port /dev/ttyUSB0
; pio device monitor --port /dev/ttyUSB0 --baud 115200
; ------------------------------------------------------------
[env:esp32dev_hx711_test]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 115200 ; safer speed for reliable flashing on some CP2102 boards
lib_deps =
bogde/HX711@^0.7.5
; Build only the test file, ignore the main production code
build_src_filter =
+<hx711_test.cpp>
-<main.cpp>
-<vl53l4cx_sensor.cpp>
-<vl53l4cx_test.cpp>
; ------------------------------------------------------------
; Test environment for VL53L4CX wiring verification only
; Usage:
; pio run -e esp32dev_vl53_test -t upload --upload-port /dev/ttyUSB0
; pio device monitor --port /dev/ttyUSB0 --baud 115200
; ------------------------------------------------------------
[env:esp32dev_vl53_test]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 115200
lib_deps =
https://github.com/stm32duino/VL53L4CX.git
build_src_filter =
+<vl53l4cx_test.cpp>
+<vl53l4cx_sensor.cpp>
-<main.cpp>
-<hx711_test.cpp>