Pebble App Framework
v4.6.0
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
vibe.h
Go to the documentation of this file.
1
7
#pragma once
8
#include <pebble.h>
9
14
18
typedef
enum
19
{
20
VibePulseShort
,
21
VibePulseLong
,
22
VibePulseDouble
,
23
}
VibePulse
;
24
30
void
vibe_pulse
(
VibePulse
pulse);
31
43
void
vibe_custom
(
const
uint32_t *durations, uint32_t num_segments);
44
51
void
vibe_choice
(uint8_t choice);
52
60
void
vibe_bt_transition
(
bool
connected);
61
79
void
vibe_hourly
(
const
struct
tm *tick, uint8_t choice);
80
vibe_custom
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
vibe_pulse
void vibe_pulse(VibePulse pulse)
Fire a pulse unless in quiet time.
Definition
vibe.c:17
vibe_choice
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
vibe_hourly
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
vibe_bt_transition
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
VibePulse
Defines the available haptic pulse patterns.
Definition
vibe.h:19
VibePulseLong
@ VibePulseLong
A single long pulse.
Definition
vibe.h:21
VibePulseDouble
@ VibePulseDouble
Two short pulses.
Definition
vibe.h:22
VibePulseShort
@ VibePulseShort
A single short pulse.
Definition
vibe.h:20
src
c
pebble
system
vibe
vibe.h
Generated by
1.18.0