Skip to content

Instantly share code, notes, and snippets.

TextLayer *hello_text_layer = text_layer_create(GRect(10, 10, 100, 40));
text_layer_set_text(hello_text_layer, "Hello");
layer_add_child(window_get_root_layer(first_window), text_layer_get_layer(hello_text_layer));
#include <pebble.h>
int main(void) {
// setup
Window *first_window = window_create();
window_stack_push(first_window, true);
// start run loop
app_event_loop();
#include <pebble.h>
int main(void) {
// setup
// start run loop
// cleanup
}