Shared dev harness for screenshots. It seeds the clock, weather, health, system, and location stores with a fixed fixture, using the store seed mechanism so no live source overwrites it, and drives an accelerometer-tap theme "walk". Each tap steps to the next theme and the next fixed set of readings, on the same fixed clock. More...
#include <pebble.h>Go to the source code of this file.
Enumerations | |
| enum | DevWalkMode { DEV_WALK_NONE , DEV_WALK_THEMES } |
| Which walk a tap advances. The face works this out from its own toggles. More... | |
Functions | |
| void | dev_walk_seed_stores (int hour, int min) |
| Inits the clock, weather, health, system, and location stores from the default fixture, with live set to false and a pinned clock, so the face shows fixed data that no live reading can stomp. Weather and location are only filled for a face that declares their keys, and left empty otherwise. Call in place of those stores' live inits. | |
| void | dev_walk_init (DevWalkMode mode, void(*apply_theme)(void)) |
| Starts the walk. A theme walk forces the first theme and subscribes the accelerometer tap. Either mode then paints. Call after engine_init. | |
| void | dev_walk_deinit (void) |
| Drop the tap subscription. Call from deinit. | |
Shared dev harness for screenshots. It seeds the clock, weather, health, system, and location stores with a fixed fixture, using the store seed mechanism so no live source overwrites it, and drives an accelerometer-tap theme "walk". Each tap steps to the next theme and the next fixed set of readings, on the same fixed clock.
The dev plugin owns the walk and the fixture. A face owns only its switches, in its own src/c/dev/dev.h, and passes them in. Compiled for any face that lists the dev plugin, but never called by a release build, so the linker drops it all.