Simple project to turn on/off a LED connected with your ADK compatible device.
Arduino waits for a command from ADK serial port. If you want to create new features, just edit these functions:
parseResponse()
: simply change buffer parsing to get one or more commands with parameterscommandInterpreter(uint8_t command)
: use this switch case to run arbitrary Arduino tasks
Remember to change these descriptors even in your Android app manifest:
// Accessory descriptor. It's how Arduino identifies itself in Android.
char accessoryName[] = "LED actuator";
char manufacturer[] = "Example, Inc.";
char model[] = "ADK-Led";
char versionNumber[] = "0.1.0";
char serialNumber[] = "1";
char url[] = "http://www.example.com";
FreeBSD (see LICENSE
file)