Skip to content

Commit cf10dd6

Browse files
v0.18.0 🎉 (#425)
2 parents 524ad7e + 9478a8e commit cf10dd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+957
-199
lines changed

‎.github/workflows/test-EMULATOR.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656
if: failure()
5757
uses: actions/upload-artifact@v4
5858
with:
59-
name: test-results
59+
name: test-results-${{ matrix.build-configuration }}
6060
path: |
6161
build/Testing

‎.github/workflows/test-OS.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ jobs:
7575
run: mv include/config.h.example include/config.h
7676
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }}
7777
run: python3 .github/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b debug
78+
- name: Upload ${{ matrix.os }} firmware artifacts
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: firmwares-${{ matrix.os }}-${{ matrix.language }}-${{ matrix.model }}
82+
path: "*.bin"

‎.github/workflows/test-OSW.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ jobs:
8585
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }}
8686
run: python3 .github/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b "${{ matrix.build-configuration }}"
8787
- name: Upload firmware artifacts
88-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v4
8989
with:
90-
name: firmwares
90+
name: firmwares-${{ matrix.language }}-${{ matrix.model }}-${{ matrix.build-configuration }}
9191
path: "*.bin"
9292

9393
# do this last step seperately to avoid race conditions with firmware upload
@@ -96,14 +96,14 @@ jobs:
9696
needs: build-OSW
9797
if: startsWith(github.ref, 'refs/tags/v')
9898
steps:
99-
- uses: actions/download-artifact@v3
99+
- uses: actions/download-artifact@v4
100100
with:
101-
pattern: "*.bin"
101+
pattern: firmwares*
102102
merge-multiple: true
103103
- name: Create release and upload firmware to it
104104
uses: softprops/action-gh-release@v2
105105
with:
106-
files: "firmwares/*.bin"
106+
files: "*.bin"
107107
draft: true
108108
prerelease: true
109109
generate_release_notes: true

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ $ ./createScreenshot.sh <IP_OF_WATCH> <SCREENSHOT>
118118
119119
## Troubleshooting
120120
121-
For more information on troubleshooting, see [Wiki](https://open-smartwatch.github.io/resources/firmware/#troubleshooting).
121+
For more information on troubleshooting, see [Wiki](https://open-smartwatch.github.io/firmware/troubleshooting/).
122122
123123
### Arduino_TFT.h: No such file or directory
124124

‎docs/firmware/apps/watchfaces.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Watchfaces
22

33
## Default
4+
!!! tip
5+
On most watchfaces, you can control the screen brightness by pressing the `UP` and `DOWN` buttons and store it quickly as default by long-pressing the `DOWN` button.
46

57
### Analog
68

‎docs/firmware/flags.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The table below list all currently available features of the OSW-OS. These featu
66
| `OSW_FEATURE_STATS_STEPS` | Enable step history (displayed on the watchfaces) | - |
77
| `OSW_FEATURE_WIFI` | Enable all wifi related functions (services, webinterface) | - |
88
| `OSW_FEATURE_WIFI_ONBOOT` | Allow the user to enable the wifi on boot | `OSW_FEATURE_WIFI` |
9+
| `OSW_FEATURE_BLE_SERVER` | Enable BLE server for the watch | - |
910
| `OSW_FEATURE_BLE_MEDIA_CTRL` | Enables media control via BLE | - |
1011
| `OSW_FEATURE_LUA` | Enable LUA scripting support for apps | `LUA_C89_NUMBERS` |
1112
| `SERVICE_BLE_COMPANION=1` | Enables the BLE Companion Service (unstable, requires custom smartphone application) | - |

‎include/apps/watchfaces/OswAppWatchfaceDigital.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class OswAppWatchfaceDigital: public OswAppV2 {
1717
void onDraw() override;
1818
void onButton(Button id, bool up, ButtonStateNames state) override;
1919

20-
inline static uint8_t getDateFormat(); // Return 0 : mm/dd/yyyy 1 : dd.mm.yyyy 2 : yy.mm/dd
20+
inline static uint8_t getDateFormat();
2121
static void refreshDateFormatCache();
2222
static void drawSteps();
2323
static void digitalWatch(short timeZone, uint8_t fontSize, uint8_t dateCoordY, uint8_t timeCoordY);
24-
static void timeOutput(uint32_t hour, uint32_t minute, uint32_t second, bool showSecond = true);
25-
static void dateOutput(uint32_t yearInt, uint32_t monthInt, uint32_t dayInt);
24+
static void timeOutput(const OswTime& oswTime, bool showSecond = true);
25+
static void dateOutput(const OswDate& oswDate);
2626
static void displayWeekDay3(const char* weekday);
2727

2828
private:

‎include/apps/watchfaces/OswAppWatchfaceFitnessAnalog.h‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@ class OswAppWatchfaceFitnessAnalog : public OswAppV2 {
2525

2626
static uint32_t calculateDistance(uint32_t steps);
2727

28-
void timeDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second);
29-
void timeDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
30-
void dateDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
31-
32-
void test();
33-
3428
~OswAppWatchfaceFitnessAnalog() {}
3529

3630
private:
3731
time_t lastTime = 0;
3832
unsigned screen = 0;
3933

4034
void showFitnessTracking(OswHal* hal);
41-
void drawWatchFace(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
42-
void drawDateFace(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
35+
void drawWatchFace(OswHal* hal, const OswTime& oswTime);
36+
void drawDateFace(OswHal* hal, const OswDate& oswDate, const OswTime& oswTime);
4337

4438
#ifdef GIF_BG
4539
OswAppGifPlayer* bgGif = nullptr;

‎include/config_defaults.h‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
#define CONFIG_FALLBACK_2ND_WIFI_PASS ""
8787
#endif
8888

89+
#ifndef BLE_ON_BOOT
90+
#define BLE_ON_BOOT false
91+
#endif
92+
8993
#ifndef DISPLAY_BRIGHTNESS
9094
// DISPLAY_MIN_BRIGHTNESS - 255
9195
#define DISPLAY_BRIGHTNESS 128
@@ -174,7 +178,7 @@
174178
// The following settings are configurable later on using the web ui, you can still set the defaults here.
175179

176180
#ifndef CONFIG_DATE_FORMAT
177-
// possibilities: "mm/dd/yyyy","dd.mm.yyyy" and "yy.mm/dd"
181+
// see src/osw_config_keys.cpp for possible values (look for this define in the file)
178182
#define CONFIG_DATE_FORMAT "mm/dd/yyyy"
179183
#endif
180184

@@ -238,8 +242,10 @@
238242
#define TOOL_TIMER_BTN_TIMEOUT 1800
239243
#endif
240244

241-
/*
242-
* Experimentals/Services:
245+
/**
246+
* Experimentals/Services
247+
*
248+
* Keep in mind, that the OSW may not be tested with these flags (un)set. Be prepared to fix some bugs ;)
243249
*/
244250

245251
// Experimentals (1 = enable, 0 = disable):

‎include/gfx_2d_print.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class Graphics2DPrint : public Graphics2D, public Print {
453453
* @brief Set the text size.
454454
*
455455
* Size "1" mean a size of 8px height and 6 px width.
456-
* Size "2" mean a double size => 18px height x 12px width
456+
* Size "2" mean a double size => 16px height x 12px width
457457
*
458458
* @param s Size of the text
459459
*/

0 commit comments

Comments
 (0)