Skip to content

Simple project to turn on/off a LED connected with your ADK compatible device (Android).

License

Notifications You must be signed in to change notification settings

palazzem/arduino-adk-lightbulb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino ADK lightbulb

Simple project to turn on/off a LED connected with your ADK compatible device.

Structure

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 parameters
  • commandInterpreter(uint8_t command): use this switch case to run arbitrary Arduino tasks

Accessory descriptor

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";

Android ADK application

License

FreeBSD (see LICENSE file)

About

Simple project to turn on/off a LED connected with your ADK compatible device (Android).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 100.0%