USB_Host_Shield_2.0/newusb.pde

25 lines
383 B
Text
Raw Normal View History

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