]> git.earman.xyz Git - sensor-watch.git/commit
movement: Add "instant" led_duration option.
authorWesley Aptekar-Cassels <me@wesleyac.com>
Sat, 30 Sep 2023 02:10:14 +0000 (22:10 -0400)
committerWesley Aptekar-Cassels <me@wesleyac.com>
Sat, 30 Sep 2023 02:10:14 +0000 (22:10 -0400)
commit30195a2619fe04a9c27ed03a3d116f2c3921688d
tree75d4945eb081ed1a5ab655ce0bcdde6993f216f3
parent5c94111ea20e50cb9dab8f416603403185e933b3
movement: Add "instant" led_duration option.

This illuminates the LED only for the time that the button is pressed,
and turns it off as soon as it's released, which is the behaviour of the
original watch.

I chose a led_duration of zero to represent "instant" and all bits set
to represent "no LED", which is arbitrary but seemed more sensible to
me.
movement/movement.c
movement/movement.h
movement/watch_faces/settings/preferences_face.c