77546c9fe2
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`. |
||
---|---|---|
.devcontainer | ||
.github | ||
.idea/codeStyles | ||
.vscode | ||
bootloader | ||
cmake-nRF5x | ||
doc | ||
docker | ||
hooks | ||
src | ||
tests | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitattributes | ||
.gitconfig | ||
.gitignore | ||
.gitmodules | ||
.gitpod.yml | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
gcc_nrf52-mcuboot.ld | ||
gcc_nrf52.ld | ||
LICENSE | ||
nrf_common.ld | ||
nrf52.svd | ||
README.md |
InfiniTime
Fast open-source firmware for the PineTime smartwatch with many features, written in modern C++.
New to InfiniTime?
- Getting started with InfiniTime
- Updating the software
- About the firmware and bootloader
- PineTimeStyle Watch face
Companion apps
- Gadgetbridge (Android)
- AmazFish (SailfishOS)
- Siglo (Linux)
- InfiniLink (iOS) [Looking for a new maintainer]
- ITD (Linux)
- WatchMate (Linux)
Note : We removed mentions to NRFConnect as this app is closed source and recent versions do not work anymore with InfiniTime (the last version known to work is 4.24.3). If you used NRFConnect in the past, we recommend you switch to Gadgetbridge.
Development
- InfiniTime Vision
- Rough structure of the code
- How to implement an application
- Generate the fonts and symbols
- Tips on designing an app UI
- Bootloader, OTA and DFU
- External resources
Contributing
Build, flash and debug
- InfiniTime simulator
- Build the project
- Build the project with Docker
- Build the project with VSCode
- Flash the firmware using OpenOCD and STLinkV2
- Flash the firmware using SWD interface
- Flash the firmware using JLink
- Flash the firmware using GDB
- Stub using NRF52-DK
API
Architecture and technical topics
Project management
- Maintainer's guide
- Versioning
- Project branches
- Files included in the release notes
- Files needed by the factory
Licenses
This project is released under the GNU General Public License version 3 or, at your option, any later version.
It integrates the following projects:
- RTOS : FreeRTOS under the MIT license
- UI : LittleVGL/LVGL under the MIT license
- BLE stack : NimBLE under the Apache 2.0 license
- Font : Jetbrains Mono under the Apache 2.0 license
Credits
I’m not working alone on this project. First, many people create PR for this project. Then, there is the whole #pinetime community : a lot of people all around the world who are hacking, searching, experimenting and programming the Pinetime. We exchange our ideas, experiments and code in the chat rooms and forums.
Here are some people I would like to highlight:
- Atc1441 : He works on an Arduino based firmware for the Pinetime and many other smartwatches based on similar hardware. He was of great help when I was implementing support for the BMA421 motion sensor and I²C driver.
- Koen : He’s working on a firmware based on RiotOS. He integrated similar libs as me : NimBLE, LittleVGL,… His help was invaluable too!
- Lup Yuen Lee : He is everywhere: he works on a Rust firmware, builds a MCUBoot based bootloader for the Pinetime, designs a Flutter based companion app for smartphones and writes a lot of articles about the Pinetime!