nightstand

1.0.5 • Public • Published

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 returns true 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.

Readme

Keywords

Package Sidebar

Install

npm i nightstand

Weekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • reini1305