This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PebbleAccelPacket { | |
//Data members | |
public int x, y, z; | |
/** | |
* Default constructor | |
*/ | |
public PebbleAccelPacket() { | |
x = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pebble.h> | |
Window* g_window; | |
TextLayer *g_text_layer; | |
GBitmap *g_frame_bitmap; | |
BitmapLayer *g_frame_layer; | |
void window_load(Window *window) | |
{ | |
//Create and add the image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pebble.h> | |
Window* g_window; | |
TextLayer *g_text_layer; | |
void window_load(Window *window) | |
{ | |
//We will add the creation of the Window's elements here soon! | |
g_text_layer = text_layer_create(GRect(0, 0, 144, 168)); | |
text_layer_set_background_color(g_text_layer, GColorClear); |
NewerOlder