Skip to content

Instantly share code, notes, and snippets.

@jgrar
jgrar / struct_test.c
Last active August 29, 2015 13:56 — forked from treeherder/a_g.c
#include <stdio.h>
struct ret
{
char *id;
int accel_x;
int accel_y;
int accel_z;
int gyro_x;
int gyro_y;
@jgrar
jgrar / avrserial.c
Created October 20, 2012 11:12
thinking about changing it up
#include <avr/io.h>
#include <stdio.h>
#include <stdint.h>
#define BAUD 19200
#define important_magic_number F_CPU/16/BAUD-1
int32_t main{
begin(important_magic_number);
/* need to figure out which ports /registers/pins to use*/