Our consultants are reguarly on the front line collecting up-to-date customer requirements and wish-lists. We actively encourage them to share this knowledge and find time to articulate this into a regular blog. Please feel free to comment or ask relevant questions or open a debate with us.

Friday, November 06, 2015

Protirus Pebble Watchface

I bought a Pebble watch so I could delve into the developer aspect and create a couple of watch faces, plus what's not cool about a smartwatch, anyone remember Knight Rider, who wouldn't want to talk to their car, just me?
Off to https://developer.getpebble.com/ to see what needs to be done.

They have great documentation and an awesome IDE in the cloud - https://cloudpebble.net/. Try it out, so easy to use and you can create an app very quickly.
They have a number of SDKs, I used the C one, luckily I have some experience when dealing with some low level APIs in iOS developement that aren't Obj-C but C instead.

If you did want to use XCode with the Pebble SDK check out Mic Pringle's PebCode.

This is quite a simple watchface but allows for a couple of customisations. There is a custom image as the background, a custom font, showing the date and time on the screen.

Firstly I made an image 144x168 using just the Protirus P.
Then I needed to position both the Time and Date in the bottom right of the screen. This all uses layers with formatting options you'd expect like size, alignment and position.
The key here is not to have too much going on or you'll drain the battery, we only need to update the time every minute, if we did it every second it would get process intensive. This goes for if you wanted to show an animation, your could load multiple images and just switch between them.

Protirus Watchface (1) => Protirus Watchface (2)

You can download the Watchface on the Market and see the code on github.

What's your favourite one, let me know in the comments.


0 Comments
Alex Hedley

Login or Register an account to leave a comment

No comments to display

Protirus © 2017
Registered in England and Wales: 6772473 | VAT Registration: 6772473 | Terms of Use | Data & Privacy Policy