-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
61 lines (53 loc) · 1.99 KB
/
platformio.ini
File metadata and controls
61 lines (53 loc) · 1.99 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
; PlatformIO Project Configuration
; Zigbee WLED Bridge - ESP32-C6
; Presents WLED devices as Zigbee HA Extended Color Lights (Hue-compatible)
; and controls them via the WLED JSON API over HTTP.
[env]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
platform_packages =
framework = arduino
board_build.filesystem = littlefs
monitor_speed = 115200
; --- OTA upload support ---
; To upload via OTA: pio run -t upload --upload-port zigbeewled.local
; Or specify IP directly: pio run -t upload --upload-port 192.168.x.x
; --- Dependencies ---
lib_deps =
bblanchon/ArduinoJson@^7.0.0
; --- Build flags ---
build_flags =
-DFIRMWARE_VERSION=\"0.1.0\"
-DFIRMWARE_RELEASE_NAME=\"ZigbeeWLED\"
-DZIGBEE_MODE_ED=1
-DCONFIG_ZB_ENABLED=1
-DBOARD_HAS_PSRAM=0
; Route Arduino log_* macros through ESP-IDF esp_log_writev so they reach
; our esp_log_set_vprintf hook. Without this the Arduino framework uses its
; own UART path that bypasses the hook entirely.
-DUSE_ESP_IDF_LOG
; Compile-time gate: allow ESP_LOGI / ESP_LOGW / ESP_LOGE to emit code.
; The precompiled SDK has CONFIG_LOG_DEFAULT_LEVEL=1 (ERROR) baked in, which
; compiles out all INFO/WARN calls. These overrides affect only our own
; translation units (the precompiled .a files are unaffected).
-DLOG_LOCAL_LEVEL=ESP_LOG_VERBOSE
-DCONFIG_LOG_MAXIMUM_LEVEL=5
; Maximum number of configurable lights
-DMAX_LIGHTS=16
; Zigbee endpoints start at 10 (endpoint N = 10 + light_index)
-DZIGBEE_ENDPOINT_BASE=10
; Zigbee task config
-DZIGBEE_TASK_STACK_SIZE=16384
-DZIGBEE_TASK_PRIORITY=5
build_unflags =
-DCORE_DEBUG_LEVEL=0
-D CORE_DEBUG_LEVEL=0
; --- Default: 4MB flash ESP32-C6 ---
[env:esp32c6]
board = esp32-c6-devkitc-1
board_build.partitions = partitions/zigbee_dmx_4MB.csv
board_upload.flash_size = 4MB
; --- 8MB flash variant ---
[env:esp32c6-8mb]
board = esp32-c6-devkitc-1
board_build.partitions = partitions/zigbee_dmx_8MB.csv
board_upload.flash_size = 8MB