ported the sample arduino code for the ADK 2012 version