Loading...
Searching...
No Matches
vibe.h
Go to the documentation of this file.
1
7#pragma once
8#include <pebble.h>
9
14
24
30void vibe_pulse(VibePulse pulse);
31
43void vibe_custom(const uint32_t *durations, uint32_t num_segments);
44
51void vibe_choice(uint8_t choice);
52
60void vibe_bt_transition(bool connected);
61
79void vibe_hourly(const struct tm *tick, uint8_t choice);
80
void vibe_custom(const uint32_t *durations, uint32_t num_segments)
Buzz a custom on and off rhythm unless in quiet time. The durations are milliseconds that alternate b...
Definition vibe.c:39
void vibe_pulse(VibePulse pulse)
Fire a pulse unless in quiet time.
Definition vibe.c:17
void vibe_choice(uint8_t choice)
Fire the pattern named by a VibeChoice (VIBE_NONE stays silent). The caller resolves the choice from ...
Definition vibe.c:50
void vibe_hourly(const struct tm *tick, uint8_t choice)
Buzz once at the top of each hour. A face calls this from its time callback on every tick,...
Definition vibe.c:84
void vibe_bt_transition(bool connected)
The default bluetooth-transition buzz: fire the pattern the user picked in settings for a connect or ...
Definition vibe.c:61
VibePulse
Defines the available haptic pulse patterns.
Definition vibe.h:19
@ VibePulseLong
A single long pulse.
Definition vibe.h:21
@ VibePulseDouble
Two short pulses.
Definition vibe.h:22
@ VibePulseShort
A single short pulse.
Definition vibe.h:20