nightstand
v1.0.5
Published
Easy to use library to implement a nightstand mode in pebble watchfaces. If you put your pebble on its side, this will show a correctly rotated time in text form while it is charging.
Downloads
1
Readme
Nightstand Library
Easy to use library to implement a nightstand mode in pebble watchfaces. If you put your pebble on its side, this will show a correctly rotated time in text form like in this picture:
Usage boils down to:
include "<nightstand/nightstand.h>
in your source file- call
nightstand_window_init()
in your init code - call
nightstand_window_deinit()
in your deinit code - call
nightstand_window_update()
in your update code (e.g. once per minute). If it returnstrue
the nightstand mode is active and you don't have to draw because your window will be hidden by the nightstand window.
Credits
credits go to Yuriy Galanter for the Effect Layer library (https://github.com/ygalanter/EffectLayer), that I included here in a stripped-down version.