This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "displayapp/screens/InfiniPaint.h" | |
#include "displayapp/DisplayApp.h" | |
#include "displayapp/LittleVgl.h" | |
#include "displayapp/InfiniTimeTheme.h" | |
#include <algorithm> // std::fill | |
using namespace Pinetime::Applications::Screens; | |
InfiniPaint::InfiniPaint(Pinetime::Components::LittleVgl& lvgl, Pinetime::Controllers::MotorController& motor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from datetime import datetime | |
# https://jsoneditoronline.org/#left=local.kuvewa | |
# https://files.seeedstudio.com/products/SenseCAP/SenseCAP_Tracker/SenseCAP_Tracker_T1000-AB_User_Guide.pdf | |
# https://github.com/Seeed-Solution/SenseCAP-Decoder/blob/main/T1000/TTN/SenseCAP_T1000_TTN_Decoder.js | |
file = open("data.log", "r") | |
lines = file.readlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For this example, I'm working in /home/jf/git/test/ | |
# [1] Clone InfiniTime | |
$ git clone https://github.com/InfiniTimeOrg/InfiniTime.git | |
$ git submodule update --init --recursive | |
$ cd .. | |
# [2] Clone InfiniSim | |
$ git clone --recursive https://github.com/InfiniTimeOrg/InfiniSim.git | |
$ git submodule update --init --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For those having issue with my firmware, here are some info: | |
- I build the code using gcc-arm-none-eabi-8-2019-q3-update and nRF5_SDK_15.3.0_59ac345. It might work with newer GCC but I haven't checked. Newer NRF52 SDK might need code change. | |
- If the CMake targets for flashing do not work, I would recommand to first try to flash the firmware manually (using JLink tools, OpenOCD, GDB, or any tool you're familiar with). It's not easy to provide scripts and command that'll work for anyone, as everyone use a different setup (ide, compiler, tools, debugger,...) | |
To do that, you can either use the files from the release, or the files you built yourself. | |
Release files : | |
- pinetime-app.hex is the standalone firmware. It should be flashed at address 0x00 and boots right away. It does not work with @lupyuen bootloader. | |
- pinetime-mcuboot-app.hex is the version of the firmware that works with the bootloader. BUT... MCUBoot (the bootloader) cannot work with this file directly, it must be converted into an "image" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and run this project. This is the GATT server that implement the CTS server | |
Server GATT : https://github.com/nettlep/gobbledegook | |
# Start a BLE scan to find the MAC_ADDRESS of your Pinetime | |
hcitool scan | |
# Optionally, get some info about your Pinetime | |
hcitool -leinfo --random MAC_ADDRESS | |
#Start bluetoothctl |