Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have managed to run the old ADK with my Jelly Beans device. Here are the details:</p> <ul> <li>Running on Mac OS Mountain Lion</li> <li>With Arduino Mega ADK</li> <li>Samsung Galaxy S3 with 4.1.1</li> </ul> <p>Steps:</p> <ol> <li>download darduino-1.0.1-macosx</li> <li>Empty the Documents/Arduino Folder</li> <li>Create a folder libraries in it</li> <li>Download the USB compatibilty files from labs.arduino.cc/uploads/ADK/GettingStarted/ArduinoADK-beta-001.zip.</li> <li>After unzipping copy the ArduinoADK-beta-001/libraries/UsbHost folder into the libraries folder mentioned above.</li> <li>Get the AndroidAccessory folder and copy it into libraries. Soory, Ican remember where I got it from. It is necessary so that the code can compile, because in knows what an Accesory is. This folder especially contains the AndroidAccessory.cpp and AndroidAccessory.h</li> <li><p>Start Ardoinu and for example upload the code to your board (Please insert # before the includes and definces, code format does not display it):</p> <p>include &lt; Max3421e.h > include &lt; Usb.h > include &lt; AndroidAccessory.h > define ARRAY_SIZE 12;</p> <p>AndroidAccessory acc("Manufacturer", "Model", "Description", "Version", "URI", "Serial");</p> <p>char hello[12] = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};</p> <p>void setup() { Serial.begin(115200); // acc.powerOn(); acc.begin(); }</p> <p>void loop() {</p> <p>if (acc.isConnected()) { for (int i=0; i &lt; 12; i++) { Serial.print(hello[i]); delay(250); }</p> <p>Serial.println(); delay(250); } }</p> <ol> <li>When connecting the S3 via USB you should see the output in the Serial Monitor.</li> </ol></li> </ol> <p>Best regards FL</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload