Skip to content

Instantly share code, notes, and snippets.

@drewtm
drewtm / ascii_graph
Created February 18, 2014 22:07
Quick-and-dirty IMU Sensor Graphing
/*
* Here is a sketch that "graphs" the accelerometer and gyroscope data coming from
* the Pololu L3G and LSM303 libraries--by rapidly outputting graphically-arranged
* strings to the Arduino serial monitor. It's much easier than strings of numbers
* to look at and tell whether your sensors are working properly.
*/
#include <Wire.h>
#include <String.h>
#include <L3G.h>