-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from Open-Smartwatch/develop
New release
- Loading branch information
Showing
94 changed files
with
870 additions
and
421 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: OSW-FEATURE-test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
Find-feature: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- id: get-flag | ||
run: | | ||
echo "::set-output name=feature::$(D=$(curl https://api.github.com/repos/Open-smartwatch/open-smartwatch.github.io/contents/docs/resources/firmware.md | jq -r ".content" | base64 --decode | grep -o '^-.*` |'); V=$(echo $D | tr '` |-' ' ');V=($V);jq --compact-output --null-input '$ARGS.positional' --args -- "${V[@]}")" | ||
- id: default_mod | ||
run: | | ||
echo "::set-output name=default_model::$(R=$(x=$(cat platformio.ini | grep "defau"); echo "${x:15}"); R=($R);jq --compact-output --null-input '$ARGS.positional' --args -- "${R[@]}")" | ||
- id: default_lang | ||
run: | | ||
echo "::set-output name=default_language::$(A=$(if [ -e include/locales/en-US.h ]; then s=$(ls include/locales/en-US.h); else s=$(ls include/locales/*.h -1 | head -1); fi; echo ${s:16:5});A=($A);jq --compact-output --null-input '$ARGS.positional' --args -- "${A[@]}")" | ||
outputs: | ||
feature: ${{ steps.get-flag.outputs.feature }} | ||
default_model: ${{ steps.default_mod.outputs.default_model }} | ||
default_language: ${{ steps.default_lang.outputs.default_language }} | ||
build-OSW: | ||
needs: Find-feature | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
feature: ${{ fromJson(needs.Find-feature.outputs.feature) }} | ||
model: ${{ fromJson(needs.Find-feature.outputs.default_model) }} | ||
language: ${{ fromJson(needs.Find-feature.outputs.default_language) }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.platformio | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
- name: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Install PlatformIO | ||
run: python -m pip install --upgrade pip && pip install --upgrade platformio | ||
- name: Rename config | ||
run: mv include/config.h.example include/config.h | ||
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }} feature ${{ matrix.feature }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} -f ${{ matrix.feature }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# How to contribute to Open-smartwatch | ||
|
||
In case the `develop` branch is ahead of the `master` branch and the `develop` branch is stabile enough, we periodically merge it into the `master`. | ||
|
||
In order to contribute new or updated documentation, you must first create a GitHub account and fork the original repository to your own account. You can make changes, save them in your repository and then create a pull request against this repository. | ||
|
||
Unless you are opening a pull request which only makes small corrections (for instance correcting a typo), you are more likely to get traction for your changes if you open an issue first to discuss the proposed changes. | ||
|
||
**IMPORTANT** If you want to create a pull request, please work based on the `develop` branch - so we don't have to rebase it... | ||
|
||
If you are reading this page, you are possibly interested in contributing to our project 😄 . We have an active (and friendly) developer group and would love to get your help! Some common ways you can support us are: | ||
|
||
* Testing the code | ||
* Filing issues on GitHub, if you see a problem (or adding detail to existing issues that effect you) | ||
* Fixing issues 😁 | ||
* Adding new features | ||
* Reviewing existing pull requests and possibly also contributing to them. | ||
* Translation. Always a good idea... | ||
|
||
## How to make a good bug report | ||
|
||
Submit according to the bug report form. Attach the debug log if necessary. [Read more here!](https://open-smartwatch.github.io/howto/contribute/#how-to-open-an-issue) | ||
|
||
## Submitting patches | ||
|
||
Please also see our [wiki](https://open-smartwatch.github.io/howto/contribute/) article for that. |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifdef OSW_FEATURE_STATS_STEPS | ||
|
||
#pragma once | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
#include "osw_app.h" | ||
|
||
class OswAppDistStats : public OswApp { | ||
public: | ||
OswAppDistStats(void) { | ||
ui = OswUI::getInstance(); | ||
}; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppDistStats() {}; | ||
|
||
private: | ||
void showStickChart(); | ||
void drawChart(); | ||
OswUI* ui; | ||
int32_t cursorPos = 0; // WeekDay position | ||
}; | ||
|
||
#endif |
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
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
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
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
Oops, something went wrong.