我尝试在 Arduino Mega ADK 2560(有两种类型,我使用带有两个 USB 端口的那种)和版本为 2.3.5(自定义构建)的三星 Galaxy S2 之间提供 USB 通信。但是,当我尝试 Arduino 网站中给出的 demokit 代码时,我总是收到一个错误,即error 5 : Device descriptor cannot be retrieved. Trying again.
Demokit 代码包括;
AndroidAccessory acc("Google, Inc.",
"DemoKit",
"DemoKit Arduino Board",
"1.0",
"http://www.android.com",
"0000000012345678");
acc.powerOn();
acc.isConnected(); ---error occurs here!