A spirit level for Pebble time smartwatch. Not more and not less.
Hold your watch on any side of an object (or put it on top of it), to determine if the object is level or plumb.
Features included:
- calibration
- show angles in degrees
- a flat surface level
- A click on the middle button turns on the watch light for 30 seconds
It is published in the Pebble store.
Compiled with Pebble SDK 3.4. Simply change to the 'watch_level' directory and type
pebble build
The installation is as always in Pebble Time (at least in SDK 3.4). To install on a watch:
pebble install --phone <phone_ip>
To install on an emulator:
pebble install --emulator basalt
The code includes coordinate transformation from a square to a circle taken from here. In the link they calculate it for radius '1'. I repeated their calculation for general radius and got a similar formula where in the denominator '2' is replaced by '2r'.