pebble-battery-bar
Pebble library for easily adding a battery bar to your app.
Usage
pebble package install pebble-battery-bar
// This is a simple example, demonstrating the basic usage. static BatteryBarLayer *s_battery_layer; static void static void
Additional Settings
Position the battery bar on screen.
void battery_bar_set_position(GPoint position);
Hide the percentage text (100%).
void battery_bar_set_percent_hidden(bool hidden);
Hide the battery icon.
void battery_bar_set_icon_hidden(bool hidden);
Override the color scheme for each state.
void battery_bar_set_colors(GColor normal, GColor warning, GColor danger, GColor charging);