Skip to content

Instantly share code, notes, and snippets.

View C-D-Lewis's full-sized avatar
🆑

Chris Lewis C-D-Lewis

🆑
View GitHub Profile
@C-D-Lewis
C-D-Lewis / PebbleAccelPacket.java
Last active December 1, 2015 02:53
PebbleGestureModel
public class PebbleAccelPacket {
//Data members
public int x, y, z;
/**
* Default constructor
*/
public PebbleAccelPacket() {
x = 0;
@C-D-Lewis
C-D-Lewis / main.c
Last active August 29, 2015 14:01
SDK Tutorial 2
#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
@C-D-Lewis
C-D-Lewis / main.c
Last active August 29, 2015 14:01
SDK Tutorial 1
#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);