Skip to content

Commit c775034

Browse files
committed
Add RPICT Reader – PlatformIO project (ESP32/C3)
1 parent 410d887 commit c775034

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

‎platformio.ini‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
; ══════════════════════════════════════════════════════════════════════════════
2+
; RPICT Universal Monitor – PlatformIO Konfiguration
3+
; Boards: ESP32 | ESP32-C3 | ESP8266
4+
; ══════════════════════════════════════════════════════════════════════════════
5+
6+
[common]
7+
monitor_speed = 115200
8+
lib_deps =
9+
knolleary/PubSubClient @ ^2.8
10+
bblanchon/ArduinoJson @ ^6.21
11+
12+
; ══════════════════════════════════════════════════════════════════════════════
13+
; Original ESP32 (WROOM-32, WROVER, DevKit v1, …)
14+
; Standard RX-Pin: GPIO 16 (in App konfigurierbar)
15+
; ══════════════════════════════════════════════════════════════════════════════
16+
[env:esp32]
17+
platform = espressif32
18+
board = esp32dev
19+
framework = arduino
20+
monitor_speed = ${common.monitor_speed}
21+
lib_deps = ${common.lib_deps}
22+
board_build.partitions = min_spiffs.csv
23+
build_flags =
24+
-DCORE_DEBUG_LEVEL=1
25+
-DBOARD_ESP32
26+
27+
; ══════════════════════════════════════════════════════════════════════════════
28+
; ESP32-C3 (DevKitM-1, SuperMini, …)
29+
; RISC-V Kern, UART1 fuer RPICT – Standard RX-Pin: GPIO 4
30+
;
31+
; WICHTIG: Kein ARDUINO_USB_CDC_ON_BOOT hier!
32+
; Das Flag remappt Serial->USBSerial im gesamten Framework (inkl.
33+
; chip-debug-report.cpp) und bricht den Build.
34+
; Flash stattdessen ueber UART0 (USB-zu-Serial Adapter) oder
35+
; waehle das Board "esp32-c3-devkitc-02" fuer native USB-Upload.
36+
; ══════════════════════════════════════════════════════════════════════════════
37+
[env:esp32c3]
38+
platform = espressif32
39+
board = esp32-c3-devkitm-1
40+
framework = arduino
41+
monitor_speed = ${common.monitor_speed}
42+
lib_deps = ${common.lib_deps}
43+
board_build.partitions = min_spiffs.csv
44+
build_flags =
45+
-DCORE_DEBUG_LEVEL=1
46+
-DBOARD_ESP32_C3
47+
48+
; ══════════════════════════════════════════════════════════════════════════════
49+
; ESP32-C3 SuperMini / native USB-Upload (alternative Umgebung)
50+
; Verwendet esp32-c3-devkitc-02 Board-Definition die USB-CDC korrekt
51+
; unterstuetzt ohne den Serial-Makro-Konflikt.
52+
; ══════════════════════════════════════════════════════════════════════════════
53+
[env:esp32c3_usb]
54+
platform = espressif32
55+
board = esp32-c3-devkitc-02
56+
framework = arduino
57+
monitor_speed = ${common.monitor_speed}
58+
lib_deps = ${common.lib_deps}
59+
board_build.partitions = min_spiffs.csv
60+
upload_protocol = esp-builtin
61+
build_flags =
62+
-DCORE_DEBUG_LEVEL=1
63+
-DBOARD_ESP32_C3
64+
65+
; ══════════════════════════════════════════════════════════════════════════════
66+
; ESP8266 (NodeMCU v2/v3, Wemos D1 Mini, …)
67+
; SoftwareSerial fuer RPICT – Standard RX-Pin: D5=GPIO14
68+
; ══════════════════════════════════════════════════════════════════════════════
69+
[env:esp8266]
70+
platform = espressif8266
71+
board = d1_mini
72+
framework = arduino
73+
monitor_speed = ${common.monitor_speed}
74+
lib_deps =
75+
${common.lib_deps}
76+
plerup/EspSoftwareSerial @ ^8.1
77+
build_flags =
78+
-DBOARD_ESP8266
79+
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY

0 commit comments

Comments
 (0)