172 Commits

Author SHA1 Message Date
voloved
3bd1254b5f
Revert "Added double-tap capabilities to LIS2DW" 2025-12-01 20:09:34 -05:00
voloved
57dec9f9f5
Merge pull request #103 from voloved/disable_slcd
Added watch_disable_display
2025-11-22 09:29:33 -05:00
voloved
15b8d0cc3f
Merge pull request #149 from voloved/double-tap
Added double-tap capabilities to LIS2DW
2025-11-22 08:53:20 -05:00
David Volovskiy
e7225e1d5c Merge branch 'main' into double-tap 2025-11-22 08:50:44 -05:00
michael-lachmann
998a135078
Avoid out-of-range character
When character is out of range, this will access illegal memory areas.
In watch_display_text() it also makes sense to stop on char='\0' even when in position 0.
2025-11-21 20:28:41 -07:00
David Volovskiy
eaae42cca9 Added double-tap capabilities to LIS2DW 2025-11-15 14:49:56 -05:00
David Volovskiy
8574216612 Moved away from i2c_result_t to int8_t 2025-10-19 12:58:07 -04:00
David Volovskiy
870fd8d01f Included return value of I2C calls 2025-10-19 12:51:34 -04:00
Alessandro Genova
af0051a160 fix int32 overflow when setting a year past 2067 2025-09-24 23:23:27 -04:00
David Volovskiy
358ddeaea9 Added watch_disable_display 2025-08-23 11:31:59 -04:00
Lorenzo Prosseda
3baff2f5a7 Avoid confusion between T and E on classic display
In place of T, display a + character in positions 4 and 6
2025-08-04 07:11:23 -04:00
Joey Castillo
410d32f2d0 silence warnings 2025-07-06 12:40:06 -04:00
voloved
154bd54510
Set time on make (#35)
* Time can get set from makefile

* Added setting make time into simulator

* Added  Hash in settings

* Added default location

* Cuts the Githash to 6 characters in the settings in case the makefile didn't do that already

* bump gossamer commit

* remove automatic timezone setting

* automatic time set: rename MAKEFILE_ to BUILD_ to match gossamer

* Revert "Added default location"

This reverts commit c24f69450fd40472c4f6cebb790a56c3f0d69cb6.

* silence warning

* watch_get_init_date_time: explicitly initialize all fields to 0

---------

Co-authored-by: Joey Castillo <joeycastillo@utexas.edu>
2025-07-06 10:56:27 -04:00
Joey Castillo
310ad3d095 watch_adc: enable ADC when checking battery; let's get rid of this footgun once and for all 2025-05-21 08:51:39 -04:00
Joey Castillo
f48058568a watch utility: make Friday all caps like the others 2025-05-21 00:53:13 -04:00
Joey Castillo
287f755edb slcd: we can fit these segment mappings into one byte 2025-05-20 23:50:09 -04:00
Joey Castillo
d43c216664 bugfix: need definition of colon as indicator for blinking on custom LCD 2025-05-20 23:42:22 -04:00
Joey Castillo
6840055067 claify sleep animatiion documentation 2025-05-17 23:35:14 -04:00
Joey Castillo
9ec51f026e watch_display_text_with_fallback: update documentation 2025-05-17 23:27:51 -04:00
Joey Castillo
a64386dd8e watch_display_string: update deprecation notes 2025-05-17 23:24:18 -04:00
Joey Castillo
1e9dc049bf clean up after detecting thermistor 2025-05-17 22:06:11 -04:00
Joey Castillo
80cbb0fe30 automatically detect temperature sensor 2025-05-17 10:23:38 -04:00
Joey Castillo
9e239c3f6d accelerometer: fail gracefully in absence of I2C bus 2025-05-16 01:12:38 -04:00
Joey Castillo
c5bda0faeb auto-detect accelerometer sensor (and don't fail build for lack of a temperature sensor) 2025-05-16 00:07:15 -04:00
Joey Castillo
e0746e06f1 custom LCD now has an 'arrows' indicator instead of a battery 2025-05-12 22:37:37 -04:00
Joey Castillo
e435969b51 WIP: accelerometer activity tracking 2025-04-20 13:47:04 -04:00
Joey Castillo
b8e1bb2a59 character set improvements 2025-03-15 19:53:00 -04:00
Joey Castillo
7d129ba6c3 world clock: support longer cities on custom LCD 2025-03-15 15:20:22 -04:00
Joey Castillo
5fa939786a fix warning in upstream musl function, see https://git.musl-libc.org/cgit/musl/commit/src/time/__year_to_secs.c\?id\=2d84486a08c57d00b647586b7cbe2dcec2728e81 2025-03-12 23:15:24 -04:00
Joey Castillo
2049febcf4 silence warning in new timezone renamer 2025-03-12 23:10:50 -04:00
Joey Castillo
3243ec37f3 lis2dw driver: silence warnings 2025-03-12 23:08:42 -04:00
Joey Castillo
6c5df4b7d8 default to classic indicator addresses (fix for simulator) 2025-03-09 09:58:16 -04:00
Joey Castillo
a6313b28c0 fix implicit-function-declaration warning 2025-03-08 17:58:58 -05:00
Joey Castillo
ea47ea2bce improve sunrise/sunset on custom LCD 2025-03-08 17:40:39 -05:00
Joey Castillo
d35a3ee8d1 nicer time zone names on new LCD 2025-03-08 17:17:40 -05:00
Joey Castillo
f745825a89 character set fix 2025-03-08 16:05:09 -05:00
Joey Castillo
138e91c6ef display glass autodetection 2025-03-08 13:43:11 -05:00
Joey Castillo
315cbb438e make Friday lowercase 2024-12-16 16:37:51 -05:00
Joey Castillo
251c4ba3c2 custom LCD: weekdays look better in uppercase 2024-12-13 19:03:27 -05:00
Joey Castillo
4b5e15cc1d accelrometer: add tap event, test by adding tap to set countdown 2024-11-27 18:04:17 -05:00
Joey Castillo
c2b800bb69 accelerometer: clarify this bit 2024-11-27 11:12:29 -05:00
Joey Castillo
a6f80ceb61 accelerometer: clarify purpose of this bit 2024-11-27 11:09:47 -05:00
joeycastillo
83c7f18dd0 use char instead of uint8_t to match gossamer API 2024-10-27 14:27:55 -04:00
voloved
d05a851d94
Readds leap year checks (#2) 2024-10-27 14:04:56 -04:00
joeycastillo
be68857cb0 lis2dw driver: add note to fix acceleration reading 2024-10-22 07:03:10 -04:00
joeycastillo
dc40cc9cd1 lis2dw driver: add stationary/motion detection 2024-10-19 14:54:33 -04:00
joeycastillo
e34925139f lis2dw driver: fix incorrect register setting 2024-10-19 14:53:52 -04:00
joeycastillo
4795818098 only build sensor features if sensor is available 2024-10-12 11:16:01 -04:00
joeycastillo
e1b5395e10 preliminary accelerometer support in Movement 2024-10-09 09:48:49 -04:00
joeycastillo
dd8599a5e1 implement INT2, accelerometer test shows sleep state on LED 2024-10-09 02:05:12 -04:00