Commit Graph

204 Commits

Author SHA1 Message Date
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
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
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
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
anschrammh
f1af0cd0d6 Adjusted rtc's year setting ... 2023-03-24 16:39:22 +01:00
anschrammh
f1e71bba67 Turned off a lot of functionalities related to TCP IP and WiFi to free some RAM, might be turned on back again later if needed and if RAM space left :P 2023-03-24 15:26:11 +01:00
anschrammh
d05aa72135 Updated all the settings callbacks to be compatible with the new setting system 2023-03-24 15:23:17 +01:00
anschrammh
4c1f1e168a Updated a log trace to be more meaningful 2023-03-24 15:22:15 +01:00
anschrammh
f8dace1dc1 Reduced the main's task stack size from 4k to 2k 2023-03-24 15:18:07 +01:00
anschrammh
2761a53a49 Reduced FreeRTOS available heap from 12k to 4k 2023-03-24 15:17:04 +01:00
anschrammh
2481699356 Vibration settings are now taken into account at lvgl input device driver layer 2023-03-24 15:15:19 +01:00
anschrammh
b65ab1ad4e Reduced LVGL allocated RAM by 10K. This RAM will be useful when running the BLE stack ... 2023-03-24 15:10:17 +01:00
anschrammh
b31cc96c10 Added the tls_is_rtc_running function which is not part of the official SDK. This allows to start the RTC after a reset and to know when it stopped running. 2023-03-24 15:10:16 +01:00
anschrammh
061fdb729b Updated the menu to now use the translation module to display the selected language 2023-03-24 15:06:14 +01:00
anschrammh
7e11913535 Added new watch settings in the persistency layer, added flash read and write functions, work still in progress 2023-03-24 15:06:14 +01:00
anschrammh
185b7a7efa Major rework of the settings screen :
- reduced RAM footprint by 10K :-)
- Added the new about category displaying infos about the watch's firmware
- Now widgets are reloaded with current parameters's values
- Almost all settings are taken into account
2023-03-24 15:06:14 +01:00
anschrammh
728394ff22 Reworked the compass screen to work for both possible platforms (breadboard and PCB) 2023-03-24 15:06:14 +01:00
anschrammh
86be55b404 Reworked the common screen header to add scrolling when the title is too long and to be able to update it's title after is has been created 2023-03-24 15:06:14 +01:00
anschrammh
5d3b5b5285 Added new wrapper functions to interact more easily with the watch's peripherals 2023-03-24 15:06:14 +01:00
anschrammh
beec1570c0 Reworked the orientation of the screen depending on the defined platform in app_config.h 2023-03-24 15:06:14 +01:00
anschrammh
f770a8e436 Added new parameter to be able to build the firmware for the breadboard platform or the PCB (latest) platform 2023-03-24 15:06:14 +01:00
anschrammh
6c4a186a19 Added the new translation module to the project by updating the include paths + makefile 2023-03-24 14:48:20 +01:00
anschrammh
323f1f2996 Added a translation module to implement multilanguage support 2023-03-24 14:45:55 +01:00
anschrammh
0874a24cb9 Added a new header file to track the version history of the firmware and to display the running version 2023-03-24 14:44:30 +01:00
anschrammh
099fe8cea7 Added an other charging state which wasn't an error : when both lines are high, this indicates that no charger is currently plugged to the watch 2023-03-22 08:24:20 +01:00
Anatole SCHRAMM
c97891d898 Added MCU pin definition for reading battery charge controller IC statuses 2023-03-20 17:55:01 +01:00
Anatole SCHRAMM
a752c9765d Adding the battery controller IC charging, charged and unplugged status detection, work in progress 2023-03-20 17:53:38 +01:00
anschrammh
60cf47b142 Added the state of the FreeRTOS stack (free heap/total heap) 2023-03-14 07:32:27 +01:00
anschrammh
66a3c87131 Renamed some file's header guards to be more consistent, clean some useless object in the UI, renamed a watch settings which name could be misleading 2023-03-12 21:44:43 +01:00
1602f01897 Increased application max size in the gcc_csky_bt.ld script as well, added WiFi hotspot scan routine to test antenna 2023-02-19 20:30:04 +01:00
50379bd2a9 Added libs needed with the SDK version 1.00.10 2023-02-19 17:51:03 +01:00
d2e15ac177 Minor changes 2023-02-19 17:05:58 +01:00
2bda5c0102 Updated all other files to be inline with version 1.00.10 of the SDK 2023-02-19 16:34:26 +01:00
1c6b25a74b SDK V1.00.10 uses Lwip version 2.1.3 2023-02-19 16:24:35 +01:00
4ad5c98edb Renamed SDK folder to prepare for update to version 1.00.10 2023-02-19 16:17:38 +01:00