summaryrefslogtreecommitdiffstats
path: root/movement/README.md
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-28 18:15:21 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-29 10:33:42 -0500
commit03fb09f5b47a5d2da079e58a74d6285139a3f974 (patch)
treebb2309221974f1f78628e29832d4e0b7d64fd7ac /movement/README.md
parent812c6c2612c6aa89c9e2bd356f1b8c2a829d5f6a (diff)
downloadSensor-Watch-03fb09f5b47a5d2da079e58a74d6285139a3f974.tar.gz
Sensor-Watch-03fb09f5b47a5d2da079e58a74d6285139a3f974.tar.bz2
Sensor-Watch-03fb09f5b47a5d2da079e58a74d6285139a3f974.zip
movement: more granular button and LED timing via fast tick
Diffstat (limited to 'movement/README.md')
-rw-r--r--movement/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/README.md b/movement/README.md
index 009234f8..f5b9cb15 100644
--- a/movement/README.md
+++ b/movement/README.md
@@ -51,7 +51,7 @@ This function is called just before your watch enters the foreground. If your wa
### watch_face_loop
-This is a lot like your loop() function in Arduinoland in that it is called repeatedly whenever your watch face is on screen. There is one crucial difference though: it is called less often. By default, this function is called once per second, and in response to events like button presses. You can request a more frequent tick interval by calling `movement_request_tick_frequency` with any power of 2 from 1 to 128.
+This is a lot like your loop() function in Arduinoland in that it is called repeatedly whenever your watch face is on screen. There is one crucial difference though: it is called less often. By default, this function is called once per second, and in response to events like button presses. You can request a more frequent tick interval by calling `movement_request_tick_frequency` with any power of 2 from 1 to 64. (there is a 128 Hz prescaler tick, but Movement reserves that for its own use)
In addition to the settings and context, this function receives another parameter: an `event`. This is a struct containing information about the event that triggered the update. You mostly need to check the `event_type` to determine what kind of event triggered the loop. A detailed list of all events is provided at the bottom of this document.