pebble c code