Pebble C code for my pebble