| docs | ||
| src | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| screenshot.sh | ||
| tsconfig.json | ||
| wscript | ||
Primitives 03
A Pebble Alloy project — embedded JavaScript on the watch, powered by Moddable XS, alongside C.
Description
Inspired by Nev Rawlins' TokyoFlash based abstract watches, this is the third of a series of original abstract watchfaces using simple shapes to cryptically tell time.
Examples:
This one is a challenge to read at first. The face is divided into 3 columns and 5 rows. The hour is shown by vertical bars along the edge (RED in the second image): the most-clockwise part marks the hour like an analog clock. Tens of minutes are shown in the middle three cells as a tally (GREEN in the second image), using three verticals and two horizontals. The second digit of the minutes is large, made with horizontal bars (BLUE in the second image). The date is made with the shaded squares: the top three rows are tens, and below that are nine ones. In the second image they are BLACK and are two tens and a one for the 21st. The bottom row of shading is for low-battery, PM indicator, and lost-Bluetooth.
All the colors are customizable, as are the number of bars per cell (there is always one more vertical bar than horizontal bar). You can also adjust the length of the bars.
Building & running
pebble build # build for all targetPlatforms
pebble install --emulator emery # install on the emery emulator
pebble install --phone <ip> # install to a paired phone
Target platforms
Alloy targets the modern Pebble hardware: emery (Pebble Time 2) and gabbro (Pebble Round 2). Other platforms are currently not supported.
Project layout
src/c/mdbl.c C glue around the Moddable runtime
src/embeddedjs/main.js JavaScript that runs on the watch
src/embeddedjs/manifest.json Moddable manifest
src/pkjs/index.js PebbleKit JS (phone-side) code
package.json Project metadata (UUID, platforms, resources)
wscript Build rules — usually no need to edit
Documentation
Full SDK docs and tutorials: https://developer.repebble.com