Pebble Development – a first App

So, for Christmas I received a Pebble Watch. I looked at the SDK for this and there’s a quite comprehensive development system with event driven functions as well as all the normal ‘C’ type functions.

Unknown-3

Pebble display when the App starts.

Shooting rugby most weekends, and writing reports, I often struggle to keep track of the score, elapsed time and cards, so an obvious app for me is one to do that for me. So, I set to developing just such an App for the Pebble watch.

When the App starts, it’s ready to go for kick-off. The clock is set at 40 minutes. The three buttons Up, Select and Down have different functions during the program use, indicated by the selected part of the display. Press the Select button to select the three different areas of the display (the very top always shows the current time of day).

The first section is the match time, with the display showing the elapsed time and the remaining time in the match half. Press the Up button for time off and on, indicated by X and o in the right-hand part of the display. The watch vibrates when the clock runs out. A long press on the Up button restarts the timer from 40 minutes – use this when the second half starts.

Unknown-2

Match underway, with one card in progress.

Press Select and you move to the Cards section. Press the Up button to add a card timer. Up to six cards can be added, with the watch vibrating each time a card expires. Hopefully six cards will be enough!

Press Select again, and you get to the scoring section. Press Up to increment the Home score, and Down to increment the Away score. Press and hold the relevant Up or Down button to decrement the scores in case a score was added by mistake.

Finally, press Select once more to return to the timer control mode.

My first attempt at a Pebble watch App. I guess it could look a but prettier, but it’s functional! You can see it here.

Update :

I’ve updated the program a little with some ‘hints’ on screen, and various other improvements.

December 2014, Simon Taylor

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: