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

The haptic feedback wrapper. More...

#include <pebble.h>

Go to the source code of this file.

Enumerations

enum  VibePulse { VibePulseShort , VibePulseLong , VibePulseDouble }
 Defines the available haptic pulse patterns. More...

Functions

void vibe_pulse (VibePulse pulse)
 Fire a pulse unless in quiet time.
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 buzz then pause then buzz and so on, starting on a buzz. Lets a caller play a little tune that the three canned pulses cannot.
void vibe_choice (uint8_t choice)
 Fire the pattern named by a VibeChoice (VIBE_NONE stays silent). The caller resolves the choice from wherever it likes, so the lib never has to know which setting it came from.
void vibe_bt_transition (bool connected)
 The default bluetooth-transition buzz: fire the pattern the user picked in settings for a connect or disconnect. A face installs this as system_store's vibe policy so the store itself never has to know about settings or buzzing.
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, and it buzzes on the first tick of each hour's minute 0.

Detailed Description

The haptic feedback wrapper.