1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[nrf52,zigbee] add support for binary_input (#11535)

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick+github@koston.org>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
tomaszduda23
2026-01-05 03:11:14 +01:00
committed by GitHub
parent ab0e15e4bb
commit 12027569d3
17 changed files with 866 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ def load_idedata(environment, temp_folder, platformio_ini):
"""
#include <zephyr/kernel.h>
int main() { return 0;}
extern "C" void zboss_signal_handler() {};
""",
encoding="utf-8",
)
@@ -27,6 +28,12 @@ int main() { return 0;}
CONFIG_NEWLIB_LIBC=y
CONFIG_BT=y
CONFIG_ADC=y
#zigbee begin
CONFIG_ZIGBEE=y
CONFIG_CRYPTO=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
#zigbee end
""",
encoding="utf-8",
)
@@ -44,10 +51,11 @@ CONFIG_ADC=y
def extract_defines(command):
define_pattern = re.compile(r"-D\s*([^\s]+)")
ignore_prefixes = ("_ASMLANGUAGE", "NRF_802154_ECB_PRIORITY=")
return [
match
match.replace("\\", "")
for match in define_pattern.findall(command)
if match not in ("_ASMLANGUAGE")
if not any(match.startswith(prefix) for prefix in ignore_prefixes)
]
def find_cxx_path(commands):