USB_Host_Shield_2.0/newusb.pde
2011-01-18 19:31:24 -07:00

24 lines
383 B
Text

/* reference USB library test sketch */
#include "usbhost.h"
MAX3421e<P10, P9> Max;
void setup() {
Serial.begin( 115200 );
Serial.println("\r\nStart");
if ( Max.init() == -1 ) {
Serial.println("OSCOKIRQ failed to assert");
while(1);
}
}
void loop() {
Serial.print("Revision Register: ");
Serial.println( Max.regRd( rREVISION ), HEX );
delay( 1000 );
}