From 060373ec31b07bc507cef2a6672354c527f78fb2 Mon Sep 17 00:00:00 2001 From: Ilya Date: Thu, 15 May 2025 07:59:54 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA?= =?UTF-8?q?=D1=83=20=D0=B2=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/display/LedFX/modinfo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/display/LedFX/modinfo.json b/src/modules/display/LedFX/modinfo.json index 7b09f028..5c0ad13b 100644 --- a/src/modules/display/LedFX/modinfo.json +++ b/src/modules/display/LedFX/modinfo.json @@ -152,7 +152,7 @@ "defActive": false, "usedLibs": { "esp32*": [ - "aadafruit/Adafruit NeoPixel @ ^1.12.5", + "adafruit/Adafruit NeoPixel @ ^1.12.5", "kitesurfer1404/WS2812FX @ ^1.4.5" ], "esp82*": [ From fbdcb6ee42646716f997cafcda56f79491cfd714 Mon Sep 17 00:00:00 2001 From: Ilya Date: Thu, 15 May 2025 08:00:44 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=20board=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B=20=D1=81?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PrepareProject.py | 2 ++ run.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PrepareProject.py b/PrepareProject.py index 7e8a495d..24bcdc5a 100644 --- a/PrepareProject.py +++ b/PrepareProject.py @@ -13,6 +13,8 @@ # python PrepareProject.py --profile <ИмяФайла> # python PrepareProject.py -p <ИмяФайла> # +# Используя параметры -b или --board можно уточнить для какой платы нужно подготовить проект +# # поддерживаемые контроллеры (профили): # esp8266_4mb # esp8266_16mb diff --git a/run.py b/run.py index 95808a19..44edf8f5 100644 --- a/run.py +++ b/run.py @@ -8,6 +8,7 @@ # где default_envs - это параметр default_envs из myProfile.json # # Если указан параметр -p или --profile <ИмяФайла>, то выполняется первая команда PrepareProject.py -p <ИмяФайла> +# Если указан параметр -b или --board , то выполняется первая команда PrepareProject.py -b # Если указан парамтер -l или --lite, то пропускаются команды 1, 2 и 5 с предварительной компиляцией # Если указан параметр -d или --debug, то выполняется только команда 4 с предварительной компиляцией @@ -74,8 +75,9 @@ def run_platformio(): profile_index = next((i for i, arg in enumerate(args) if arg in ('-p', '--profile')), None) profile_file = args[profile_index + 1] if profile_index is not None and len(args) > profile_index + 1 else "myProfile.json" - # Загружаем default_envs из myProfile.json - default_envs = load_default_envs(profile_path=profile_file) + # Загружаем default_envs из myProfile.json, если не указан параметр -b, который имеет больший приоритет + board_index = next((i for i, arg in enumerate(args) if arg in ('-b', '--board')), None) + default_envs = args[board_index + 1] if board_index is not None and len(args) > board_index + 1 else load_default_envs(profile_path=profile_file) print(f"Используем default_envs: {default_envs}") print(f"Режим Lite: {lite_mode}, Режим отладки: {debug_mode}")