Whoa, baby. A lot going on here. Good news — this is just a show and tell in code of what the app can do. There’s actions tied to each button. What does ‘prv_up_click_handler(ClickRecognizerRef)’ do? Hit up, and it’ll change the text on-screen to up. ‘prv_down_click_handler’, down. The ‘prv_click_config_provider’ listens to the inputs tied to the physical buttons.

It’s a great rundown of how to start with inputs. But good lord is that C syntax intense. To be honest, I’ve always been afraid of C because of it, but now that I’ve been playing around building a simple thing, it’s not too scary.

Let’s build the app, turn on the emulator, and see what this looks like.

When you hit Pebble Build, this is what appears.

Ok, so here’s a cool thing. When you build, it generates three versions: Basalt, Aplite, and Chalk. Each of those corresponds to different watches: The Pebble, The Pebble Time, & the Pebble Time Round. When you start the emulator, pick your choice.

For example, I’ll do ‘pebble install — emulator chalk’, to get the Round emulator going.

Let’s see what the Round looks like.

Ok, not a whole lot going on, but that’s ok. Let’s kill the emulator, and I’ll follow the tutorial to build a simple watch that tells the time. My inner Swiss watchmaker named Gutfriënd is smiling.

Look below for the watch app rebuilt to the barebones. You can read along with my poor comments. You’ve got 4 central pieces: window load, window unload, init, and deinit. Init gets the party started and turns on the main window. To preserve memory, unload and denit do the opposite, turn everything off to keep memory clean.

Key thing to peep here? Inside the window, I’m setting the text to “00:00”, aligned in the center at a certain height, with a font. All that other business is just getting the app organized and ready. Let’s hit it.

Let’s hit it.

Oh hell yes. It doesn’t tell time yet, but it looks like it could tell time. And that’s where the magic is. Gutfriënd believes in me. Let’s keep going, and actually enable the time.

A few edits later and…

We did it! Built a freaking watch. Whiskey, poured.

So I can tell the time. But I need battery life, weather(perceiving this to be the most complicated), location(which I can grab from weather), and the date (probably the easiest).

Before you fall asleep, let’s cut to the finish line. After some finagling, I set up the date, and not shown in this picture, the battery. So cool. I turned on developer mode, and sent the watchface right to my phone.