mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 15:04:17 +01:00
- provide a queue for the outgoing messages, don't depend on the MQTT callback implementation details and always postpone the actual transfer. - generate user input parsers using re2c, adds special PlatformIO build handlers - add terminal command to show GPIO info and send a simple payload - rework button<->action presets into value<->terminal command presets and custom ones through the use of `irCmd<VALUE>` settings, where the VALUE is taken from the simple payload (yet, it does not understand repeated codes, but that's something to add later *or* use rpnlib) - add tx message integration for the relay module via `irRelayOn#` and `irRelayOff#` - rework simple payload to include 'repeats' value for the 'IRsend::send()' also adds internal 'series', 'delay' and includes full 64bit 'value' (as uppercase HEX, instead of decimal) - rework raw payload to use 'series' instead of 'repeats', and provide a clear distinction between the usec time and the options of the message by moving the required options to the front and separating them using ':' (just like the simple variant) - make RX and TX pin a runtime setting, make RX and TX support a build flag - small test framework to check whether internal string encode<->decode works Also updates the hexEncode & hexDecode implementations to use 'iterators' instead of just pointer + index.
45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
# coding=utf-8
|
|
#
|
|
# Original extra_scripts.py
|
|
# Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
|
|
#
|
|
# ldscripts, lwip patching, updated postmortem flags and git support
|
|
# Copyright (C) 2019-2021 by Maxim Prokhorov <prokhorov dot max at outlook dot com>
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
from .build import firmware_destination, app_add_target_build_and_copy, app_add_target_build_re2c
|
|
from .checks import check_env, check_cppcheck, check_printsize
|
|
from .flags import app_inject_flags
|
|
from .float_support import remove_float_support
|
|
from .ldscripts import ldscripts_inject_libpath
|
|
from .postmortem import dummy_ets_printf
|
|
from .version import app_inject_version, app_full_version_for_env
|
|
|
|
__all__ = [
|
|
"app_add_target_build_and_copy",
|
|
"app_add_target_build_re2c",
|
|
"app_full_version_for_env",
|
|
"app_inject_flags",
|
|
"app_inject_version",
|
|
"app_version",
|
|
"check_env",
|
|
"check_cppcheck",
|
|
"check_printsize",
|
|
"dummy_ets_printf",
|
|
"firmware_destination",
|
|
"ldscripts_inject_libpath",
|
|
"remove_float_support",
|
|
]
|