2011-05-26

Android and Motorola ATRIX, Pinguino 8 bits say Hello!

I made a small test with Android, USB OTG cable, a modded USB hub and Pinguino 8bits board.

It uses a small .pde sample:


#define PIC18F4550

int counter = 0;
void setup(){
    Serial.begin(9600);
    Serial.print("Hello Android!");
}

void loop(){
char str[50];
char numstr[10];

str[0]=0;
delay(500);

strcat(str,"From Pinguino: Hello Android: c=");

counter++;
uitoa(counter,numstr,10);
strcat(str, numstr);
strcat(str,"\r\n");

CDC.print(str,strlen(str));

if(counter>10000)
 counter = 0;

}


The Pinguino 8bits board:


Atrix detects Pinguino and loads CDC driver, that phone already have CDC driver... I think it is because Google wants use ADK project too, but yes We did it before! :P


Now I want to see that working...

Man! this works! nice not? 




Postar um comentário