4 // Satisfy IDE, which only needs to see the include statment in the ino.
6 #include <spi4teensy3.h>
12 ADK adk(&Usb,"Circuits@Home, ltd.",
14 "Arduino Terminal for Android",
16 "http://www.circuitsathome.com",
22 #if !defined(__MIPSEL__)
23 while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
25 Serial.println("\r\nADK demo start");
27 if (Usb.Init() == -1) {
28 Serial.println("OSCOKIRQ failed to assert");
30 }//if (Usb.Init() == -1...
35 uint8_t buf[ 12 ] = { 0 }; //buffer to convert unsigned long to ASCII
36 const char* sec_ela = " seconds elapsed\r";
40 if( adk.isReady() == false ) {
44 ultoa( millis()/1000, (char *)buf, 10 );
46 rcode = adk.SndData( strlen((char *)buf), buf );
47 rcode = adk.SndData( strlen( sec_ela), (uint8_t *)sec_ela );