Skip to content

orviwan/pebble-bluetooth-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pebble-bluetooth-icon

Pebble library for easily adding a bluetooth connection icon to your app.

Screenshot of library in action

Usage

pebble package install pebble-bluetooth-icon

// This is a simple example, demonstrating the basic usage.
#include <pebble-bluetooth-icon/pebble-bluetooth-icon.h>

static BluetoothLayer *s_bluetooth_layer;

static void window_load(Window *window) {
  s_bluetooth_layer = bluetooth_layer_create();
  layer_add_child(window_layer, s_bluetooth_layer);
}

static void window_unload(Window *window) {
  bluetooth_layer_destroy(s_bluetooth_layer);
}

Additional Settings

Position the bluetooth icon on screen.

void bluetooth_set_position(GPoint position);

Vibrate on disconnect (default: true, double pulse).

void bluetooth_vibe_disconnect(bool vibe);

Vibrate on connect (default: true, short pulse).

void bluetooth_vibe_connect(bool vibe);

Override the color scheme.

void bluetooth_set_colors(GColor connected_circle, GColor connected_icon, GColor disconnected_circle, GColor disconnected_icon);

About

Bluetooth icon library for Pebble

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published