Loading...
Searching...
No Matches
goal_vibe_pattern.h File Reference

Reads the Goal Met Vibration pick, and turns a comma list of milliseconds into a rhythm the watch can buzz. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define GOAL_VIBE_PATTERN_MAX   40
 The most steps a pattern plays. Any past it are dropped.
#define GOAL_VIBE_PATTERN_MIN_MS   10
 The shortest step, so a 0 still buzzes or pauses a moment.
#define GOAL_VIBE_PATTERN_MAX_MS   10000
 The longest step the firmware plays.

Enumerations

enum  GoalVibeKind {
  GOAL_VIBE_KIND_NONE , GOAL_VIBE_KIND_SHORT , GOAL_VIBE_KIND_LONG , GOAL_VIBE_KIND_DOUBLE ,
  GOAL_VIBE_KIND_CUSTOM , GOAL_VIBE_KIND_LIST
}
 What a Goal Met Vibration pick plays. More...

Functions

GoalVibeKind goal_vibe_pattern_kind (const char *pick)
 What a pick plays, read from its first character.
int goal_vibe_pattern_parse (const char *text, uint32_t *out, int capacity)
 Reads a list of milliseconds such as "100,80,300" into the caller's buffer.

Detailed Description

Reads the Goal Met Vibration pick, and turns a comma list of milliseconds into a rhythm the watch can buzz.

The tune comes from the settings page, not the watch. The pick is a short string: empty for None, one letter for a plain pulse (S, L, or D), C for the wearer's own pattern, or a comma list of milliseconds for a fanfare. So the watch carries no tune tables of its own.