pinetime_introduction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pinetime_introduction [2022/02/19 22:21] – [Development] nicolas | pinetime_introduction [2022/03/01 13:09] (current) – [Development] nicolas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====PineTime - 14/02/22 - 11:58==== | + | ====PineTime - 01/03/22 - 13:00==== |
| https:// | https:// | ||
| Line 43: | Line 43: | ||
| ** CMake - Build make configurations ** | ** CMake - Build make configurations ** | ||
| - | <code bash>https:// | + | <code bash> |
| cd ~/ | cd ~/ | ||
| - | cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=/ | + | cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=/ |
| + | sudo apt-get install ninja-build | ||
| </ | </ | ||
| Line 87: | Line 89: | ||
| https:// | https:// | ||
| - | I used the develop work flow main.yml on my fork, all runs well. | + | I used the develop work flow main.yml on my fork, all runs well. For the time being I will build locally with VSCode. |
| nRF Connect For Mobile app to upload the DFU file or use GadgetBridge. | nRF Connect For Mobile app to upload the DFU file or use GadgetBridge. | ||
| Line 100: | Line 102: | ||
| **Cmake tools extension configuration** | **Cmake tools extension configuration** | ||
| - | + | run chmod u+x YourScriptFileName.sh | |
| Cmake: Configure Environment | Cmake: Configure Environment | ||
| Environment variables to pass to CMake during configure. | Environment variables to pass to CMake during configure. | ||
| Line 117: | Line 119: | ||
| ====Simulator Setup==== | ====Simulator Setup==== | ||
| - | Install SDL2 https:// | + | https:// |
| - | + | ||
| - | https:// | + | |
| - | + | ||
| - | Clone the branch | + | |
| - | <code bash> | + | |
| - | git clone --branch lv_simulation https:// | + | |
| - | cd lv_sim | + | |
| - | git submodule update --init | + | |
| - | </code> | + | |
| Build simulator version | Build simulator version | ||
| <code bash> | <code bash> | ||
| - | cd ~/ | + | cd ~/ |
| cmake -S . -B build | cmake -S . -B build | ||
| - | cmake --build build --clean-first # Clean first if needed | + | cmake --build build -j4 --clean-first # Clean first if needed |
| </ | </ | ||
| Run simulator | Run simulator | ||
| <code bash> | <code bash> | ||
| - | build/pinesim | + | ./build/infinisim --hide-status |
| </ | </ | ||
| Commands | Commands | ||
| - | https:// | + | Left mouse button: simulates your finger, just click to tap, click and drag to swipe |
| + | Right mouse button: simulates the hardware button (for example turn the screen off or on again) | ||
| - | Switch between screens with numbers on the keyboard | + | Using the keyboard |
| - | Right mouse button - Back,Wake up | + | |
| - | r ... enable ringing | + | |
| - | R ... disable ringing | + | |
| - | m ... let motor run for 100 ms | + | |
| - | M ... stop motor let motor run for max time (255 ms) | + | |
| - | v ... increase remaining battery by 10 % | + | |
| - | V ... decrease remaining battery by 10 % | + | |
| - | c ... battery is charging | + | |
| - | C ... battery is not charging | + | |
| + | *r ... enable ringing | ||
| + | *R ... disable ringing | ||
| + | *m ... let motor run for 100 ms | ||
| + | *M ... let motor run for 255 ms | ||
| + | *n ... send notification | ||
| + | *N ... clear all notifications | ||
| + | *b ... connect Bluetooth | ||
| + | *B ... disconnect Bluetooth | ||
| + | *v ... increase battery voltage and percentage | ||
| + | *V ... decrease battery voltage and percentage | ||
| + | *c ... charging, | ||
| + | *C ... not charging | ||
| + | *l ... increase brightness level | ||
| + | *L ... lower brightness level | ||
| + | *p ... enable print lvgl memory usage to terminal | ||
| + | *P ... disable print memory usage | ||
| + | *s ... increase step count by 500 steps | ||
| + | *S ... decrease step count by 500 steps | ||
| + | *h ... set heartrate running, and on further presses increase by 10 bpm | ||
| + | *H ... stop heartrate | ||
| + | |||
| + | ====Run Simulator from VSCode==== | ||
| + | |||
| + | |||
| + | Install Ninja | ||
| + | < | ||
| + | sudo apt-get install ninja-build | ||
| + | </ | ||
| + | |||
| + | Revise VSCode build script - Notes to be added. | ||
| + | |||
| + | F7 compiles the project F5 launches the simulator | ||
| ----- | ----- | ||
| Line 161: | Line 178: | ||
| *Debugging? | *Debugging? | ||
| - | *Shake to refresh app view | ||
| *Multiple BLE connections? | *Multiple BLE connections? | ||
| *Make hard wired powered dev board? | *Make hard wired powered dev board? | ||
| - | **Notes** | ||
| - | https:// | + | ==== Development |
| - | + | ||
| - | + | ||
| - | ==== Development==== | + | |
| InfiniTime uses LVGL Dev 7.11 | InfiniTime uses LVGL Dev 7.11 | ||
| Line 184: | Line 196: | ||
| + | cd ~/ | ||
| + | |||
| + | |||
| + | Notes to be looked at! | ||
| + | |||
| + | Linux BLE daemon | ||
| + | https:// | ||
| + | [T] < | ||
| + | [T] < | ||
| + | [T] < | ||
| + | [T] < | ||
| + | openocd -f interface/ | ||
| + | then | ||
| + | openocd -f interface/ | ||
| + | You need to flash a file called pinetime | ||
pinetime_introduction.1645309315.txt.gz · Last modified: by nicolas
