Commit Graph

473 Commits

Author SHA1 Message Date
92d3279eb9 Big refactoring and cleanup by removing sensors initialization code from the gfx_task.c file and moving it to the watch_peripherals.c source file. This is way more logical IMO. This change also allows to enable or disable the wrist tilt wakeup with a function call 2023-04-10 21:15:47 +02:00
b8a11a8a79 Renamed QMC5883L_Mode_Control enumeration values to make it clear they are to be used in the magnetometer API 2023-04-10 21:13:18 +02:00
efae9a917e Added a function to the pressure sensor API to be able to know if a measurement is currently being made 2023-04-10 21:12:01 +02:00
f4ffc96d5a Added the CodeBlocks project used to develop the Gadget Bridge parser code 2023-04-10 10:07:57 +02:00
3bd772837c Minor change 2023-04-10 10:02:22 +02:00
Anatole SCHRAMM
e67754b878 Minor work on the translation module, work in progress, more to be done 2023-04-05 14:47:00 +02:00
Anatole SCHRAMM
bd6d5fc6d1 Finally cleaned the wm_type_def.h file which was provided by WinnerMicro's SDK... 2023-04-05 14:27:22 +02:00
Anatole SCHRAMM
d4c516177d Added comment on modified nimble stack default value 2023-04-05 09:26:10 +02:00
anschrammh
9f7e516984 Added the uint64_t type as a typedef. Will have to do some cleanup in file as it is a mess... 2023-04-05 08:19:08 +02:00
anschrammh
4da41970a6 Registered the setTimeFormatSettingsCallback 2023-04-05 08:17:59 +02:00
anschrammh
8d408b5125 Added translations in the menu item list (on the left hand side of the configuration screen), added time format (12H/24H) setting restoration callback 2023-04-05 08:17:24 +02:00
anschrammh
d0c933c78c Added new words to translate in the enum and started to translate some of them, work in progress 2023-04-05 08:13:38 +02:00
anschrammh
92a275dc1c Slight improvement in the rf modem management for BLE 2023-04-05 08:08:15 +02:00
anschrammh
08b1b8de90 Added header with date, licence and author 2023-04-05 08:04:52 +02:00
c26a88d21c Added a function to the API allowing to register a step count indicator callback used to refresh the step counter of the watch face twice or three time a second. 2023-04-02 21:14:57 +02:00
ad61388bf6 Now starting the rf modem in bluetooth mode 2023-04-02 21:13:14 +02:00
f2b17bffd3 Added the option to only set the rf modem in bluetooth mode when starting it, this makes the power consumption drop significantly 2023-04-02 21:12:45 +02:00
6d26186bd0 Updated the readme file 2023-04-02 18:36:23 +02:00
f040e22af7 Deleted unused function prototype 2023-04-02 11:25:32 +02:00
2bfddce356 Fixed bad library path in Makefile ... 2023-03-31 10:57:09 +02:00
2650cf85f9 Merge branch 'master' of http://82.64.196.164/git/Th3maz1ng/W800_Smart_Watch 2023-03-31 10:28:39 +02:00
a7dd2b6af0 Removed blank line 2023-03-31 10:27:53 +02:00
anschrammh
1ef9face5a Updated lvgl simulated screen files 2023-03-30 13:27:24 +02:00
anschrammh
ea79af772b Halfed the BLE prefered MTU size changing it to 256 instead of 512 2023-03-30 13:26:28 +02:00
anschrammh
6a9639700b Added new functions to the watch face API such as watch_face_set_step_count_indicator or watch_face_is_in_use 2023-03-30 13:24:48 +02:00
anschrammh
61f7e21cb3 Added more information in the about section of the settings screen : battery voltage, factory reset button and other things 2023-03-30 13:16:35 +02:00
anschrammh
47753131d6 Added BLE support to the app, fixed a graphical glitch happening when
waking up the watch by touching the screen where the second hand was
jumping from the old time to the new time
2023-03-30 13:14:35 +02:00
anschrammh
3156976f7a Removed the BLE device name from this header file 2023-03-30 13:11:19 +02:00
anschrammh
b5cc52df81 Commented a trace statement in the ble service in order to keep the serial traces clean 2023-03-30 13:09:55 +02:00
anschrammh
e8583254e6 Wrapped the SDIO MMC IO busy wait statement in a function such that it can be called by any API needing it 2023-03-30 13:08:57 +02:00
anschrammh
2b79a31165 Fixed an issue when sending commands to the LCD screen while a DMA
transfer is in progress causing graphical issues
Detail :
A DMA transfer may be in progress when trying to send single byte commands to the LCD screen. This could badly configure the display as soon as the data/command select pin was set to command while the DMA was still sending data bytes.
The fix : doing a busy wait in the lcd_set_data function to be sure the bus is free to use.
2023-03-30 13:05:53 +02:00
anschrammh
a58c453f58 Added a define to easily set the BLE advertised name of the W800SmartWatch 2023-03-30 12:56:32 +02:00
anschrammh
1de2baa1eb Added information about the OS used as well as the different stacks (BLE and TCP/IP) 2023-03-30 12:54:53 +02:00
anschrammh
d6882339fe Minor change 2023-03-26 23:31:19 +02:00
anschrammh
160a2f88db Added new watch face background image with the steps counter icon 2023-03-26 23:30:50 +02:00
anschrammh
ef6e9c3779 Added new firmware_version.h file which will list all the changes with their associated version number. It also containes the firmware build time and date 2023-03-26 23:25:35 +02:00
anschrammh
fe94e2b896 Pushing updates done to the LVGL emulator project files 2023-03-26 23:24:39 +02:00
anschrammh
beb7a86af1 Added a lot of settings handling callbacks, added the code to test the BMA456 step counter feature and it seems to work just fine 2023-03-26 23:22:45 +02:00
anschrammh
721db527ce Added the ble modem and service source files (at last) 2023-03-26 23:21:27 +02:00
anschrammh
85e5fec2cd Updated the watch face background image 2023-03-26 23:19:08 +02:00
anschrammh
622681128c Reworked the vibration duration when touching the screen 2023-03-26 23:18:14 +02:00
anschrammh
214e174ffc Implemented the logic to detect and read the charge controller status pins using two different policies :
- the first one (also used right now) is using interrupts on the two lines
- the second one was doing some polling using a timer interrupt to check the controller status
2023-03-26 23:17:20 +02:00
anschrammh
9f574f0486 Added new features and graphics to the watch face :
Added a battery icon which is blinking when the battery is low
Addes a charging and charged battery icon
Added a step count counter widget with icon and count
Added a bluetooth status icon showing when ble is enabled,disabled and when a device is connected
Added the possibility to hide the hour and minute hands with a long press on the screen, this enables to see information which might be hidden by the hands ...
2023-03-26 23:13:30 +02:00
anschrammh
8a9b805b95 Added new persistency methods, reworked some old ones and added every settings set functions 2023-03-26 23:09:36 +02:00
anschrammh
9458948f59 Added support for new settings with their callbacks, adjusted vibration motor duration, added a factory reset button and now saving the settings to flash memory when leaving the settings screen 2023-03-26 23:07:43 +02:00
anschrammh
22805a4e54 Added the I2C clock speed parameter to the app_config.h file. Max working clock speed seems to be 300kHz 2023-03-26 23:04:43 +02:00
7329d86437 Mise à jour de 'LICENSE' 2023-03-24 21:42:52 +01:00
2a8c21205b Mise à jour de 'README.md' 2023-03-24 21:41:54 +01:00
anschrammh
e393c2c18a Updated the README file by adding some pictures of the PCB + otherinformation 2023-03-24 21:37:57 +01:00
anschrammh
f1af0cd0d6 Adjusted rtc's year setting ... 2023-03-24 16:39:22 +01:00