1
0
Fork 0
InfiniTime/src
Reinhold Gschweicher 77546c9fe2 lv_img_conv_py: minimal python port of node module
Create a minimal python port of the node.js module `lv_img_conv`. Only
the currently in use color formats `CF_INDEXED_1_BIT` and
`CF_TRUE_COLOR_ALPHA` are implemented.

Output only as binary with format `ARGB8565_RBSWAP`.

This is enough to create the `resources-1.13.0.zip`.

Python3 implements "propper" "banker's rounding" by rounding to the nearest
even number. Javascript rounds to the nearest integer.
To have the same output as the original JavaScript implementation add a custom
rounding function, which does "school" rounding (to the nearest integer)

Update CMake file in `resources` folder to call `lv_img_conf.py` instead of
node module.

For docker-files install `python3-pil` package for `lv_img_conv.py` script.
And remove the `lv_img_conv` node installation.

---

gen_img: special handling for python lv_img_conv script

Not needed on Linux systems, as the shebang of the python script is read
and used. But just to be sure use the python interpreter found by CMake.
Also helps if tried to run on Windows host.

---

doc: buildAndProgram: remove node script lv_img_conv mention

Remove node script `lv_img_conv` mention and replace it for
runtime-depency `python3-pil` of python script `lv_img_conv.py`.
2023-10-26 22:45:01 +02:00
..
buttonhandler ButtonHandler: includes relative to src dir 2022-01-16 20:59:49 +01:00
components weather: Fix GetCurrent* functions returning future events (#1879) 2023-10-06 19:54:20 +02:00
displayapp navigation: Add is available (#1847) 2023-09-02 19:43:39 +02:00
drivers ST7789 : do not reconfigure the reset pin to default during sleep. 2023-06-04 17:22:27 +02:00
FreeRTOS Refactor pvPortRealloc() to improve readability. 2023-05-18 19:58:09 +02:00
heartratetask Refactored Ppg for frequency based algorithm. (#1486) 2023-04-30 15:50:18 +02:00
libs arduinofft: Move to submodule, define srqt_internal externally 2023-06-17 17:46:48 +02:00
logging Format header files 2023-01-09 21:41:21 +01:00
resources lv_img_conv_py: minimal python port of node module 2023-10-26 22:45:01 +02:00
systemtask lowersleep: Implement Lower to Sleep functionality (#827) 2023-08-27 18:15:21 +02:00
touchhandler TouchHandler: Do not store touch panel reference 2023-02-24 00:05:21 +02:00
utility motioncontroller: Add functions for analysis 2023-08-17 21:21:22 +02:00
BootErrors.h Automatic error detection 2021-08-18 15:23:30 +03:00
BootloaderVersion.cpp Fix InfiniTime compiler warnings 2022-06-19 13:41:33 +03:00
BootloaderVersion.h Fix InfiniTime compiler warnings 2022-06-19 13:41:33 +03:00
CMakeLists.txt motioncontroller: Add functions for analysis 2023-08-17 21:21:22 +02:00
FreeRTOSConfig.h Enable malloc error and stack overflow error detection in FreeRTOS. Count them and display them in the SystemInfo app. 2023-05-18 19:58:09 +02:00
main.cpp Power optimization - Improve SPI sleep mode 2023-06-04 17:22:27 +02:00
main.h Enable malloc error and stack overflow error detection in FreeRTOS. Count them and display them in the SystemInfo app. 2023-05-18 19:58:09 +02:00
recoveryLoader.cpp Power optimization - Improve SPI sleep mode 2023-06-04 17:22:27 +02:00
sdk_config.h Switch to freertos timers (#1095) 2022-06-06 17:47:43 +02:00
stdlib.c Unify all heaps (stdlib + LVGL + FreeRTOS) into a single heap managed by FreeRTOS and heap_4_infinitime.c. 2023-05-18 19:58:09 +02:00
Version.h.in Add missing standard includes 2021-11-15 22:02:49 +01:00