ArduinoでUSBを使う

ここを参考に。
https://github.com/felis/USB_Host_Shield_2.0/tree/master/examples/testusbhostFAT

$ cd /Applications/Arduino.app/Contents/Resources/Java/libraries
$ git clone --recursive https://github.com/felis/USB_Host_Shield_2.0
$ git submodule foreach --recursive git pull origin master
$ git checkout xxxajk
$ open testusbhostFAT.ino

21013-10-17時点ではxxxajkブランチがコンパイルできるようである。
Makefile使わずにArduino IDE上でコンパイル

ターゲットボードをArduino Mega 2560 or Arduino ADKにしてコンパイル

とりあえずビルドまで通った。