Skip to content

Instantly share code, notes, and snippets.

@mitchtech
mitchtech / gist:1668640
Created January 24, 2012 07:07
ADB_Simple_Analog_Input
#include <SPI.h>
#include <Adb.h>
Connection * connection;
// Elapsed time for sensor sampling
long lastTime;
// Event handler for shell connection; called whenever data sent from Android to Microcontroller
void adbEventHandler(Connection * connection, adb_eventType event, uint16_t length, uint8_t * data)