From 5e53d09134ee38181575889dae7a688a6cf0a63c Mon Sep 17 00:00:00 2001 From: qlrd Date: Thu, 4 Jan 2024 21:33:34 -0300 Subject: [PATCH] added some TODOs to firmware scripts --- firmware/scripts/krux_colors.py | 7 ++++++- firmware/scripts/minify.py | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/firmware/scripts/krux_colors.py b/firmware/scripts/krux_colors.py index 589477368..a841f8d13 100644 --- a/firmware/scripts/krux_colors.py +++ b/firmware/scripts/krux_colors.py @@ -31,8 +31,13 @@ import sys +# TODO: create typings for color param and return step def rgb888torgb565(color): - """convert to gggbbbbbrrrrrggg to tuple""" + """ + Convert to gggbbbbbrrrrrggg to tuple + + :param color: tuple + """ red, green, blue = color red *= 31 red //= 255 diff --git a/firmware/scripts/minify.py b/firmware/scripts/minify.py index dcb0d4c8d..27e6140b4 100644 --- a/firmware/scripts/minify.py +++ b/firmware/scripts/minify.py @@ -19,6 +19,11 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. + +# TODO: what this script do? +""" +Some documentation about this script +""" import ast import sys import astor