nebble/foundation/watch_info

Search:
Group by:
Source   Edit  

High-level Nim wrapper for Pebble Watch Info API.

Provides information about the watch hardware and firmware.

Procs

proc color(): WatchInfoColor {.inline, ...raises: [], tags: [], forbids: [].}
Get the watch case color. Equivalent to C function watch_info_get_color(). Source   Edit  
proc firmwareVersion(): tuple[major: uint8, minor: uint8, patch: uint8] {.
    inline, ...raises: [], tags: [], forbids: [].}
Get the firmware version as a tuple (major, minor, patch). Equivalent to C function watch_info_get_firmware_version(). Source   Edit  
proc isAplite(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on Aplite (Pebble Classic/Steel). Source   Edit  
proc isBasalt(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on Basalt (Pebble Time/Time Steel). Source   Edit  
proc isChalk(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on Chalk (Pebble Time Round). Source   Edit  
proc isColorPlatform(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on a color-capable platform. Source   Edit  
proc isDiorite(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on Diorite (Pebble 2). Source   Edit  
proc isEmery(): bool {.inline, ...raises: [], tags: [], forbids: [].}
Check if running on Emery (Pebble Time 2). Source   Edit  
proc model(): WatchInfoModel {.inline, ...raises: [], tags: [], forbids: [].}
Get the watch model (e.g. WatchModelBasalt, WatchModelChalk). Equivalent to C function watch_info_get_model(). Source   Edit