2012-01-23
Android ADKをarduino-1.0に対応させる
arduino-1.0になってかなりの部分に修正が入ったためADKも修正が必要になっています。
githubで修正済みの物を置いてあります。
https://github.com/bols-blue/Android_ADK
zipファイル
https://github.com/bols-blue/Android_ADK/zipball/master
これより先はエラーの表示とarduino022からarduino-1.0への移植のための情報です。
具体的には以下のようなエラーなどがでます。
WProgram.hの名前変更によるもの
arduino-1.0/libraries/USB_Host_Shield/Max3421e.h:37:22: error: WProgram.h: No such file or directory In file included from alcoholsensor.cpp:1: arduino-1.0/libraries/USB_Host_Shield/Max3421e.h:44: error: »byte« does not name a type arduino-1.0/libraries/USB_Host_Shield/Max3421e.h:46: error: »byte« has not been declared arduino-1.0/libraries/USB_Host_Shield/Max3421e.h:46: error: »byte« has not been declared arduino-1.0/libraries/USB_Host_Shield/Max3421e.h:47: error: expected »;« before »(« token
これをクリアすると今度は戻り値のエラーで以下のようになります。
In file included from /home/bols/android_adk/arduino-1.0/libraries/USB_Host_Shield/Max_LCD.cpp:32:0: /home/bols/android_adk/arduino-1.0/libraries/USB_Host_Shield/Max_LCD.h:101:16: error: conflicting return type specified for ‘virtual void Max_LCD::write(uint8_t)’ /home/bols/android_adk/arduino-1.0/hardware/arduino/cores/arduino/Print.h:48:20: error: overriding ‘virtual size_t Print::write(uint8_t)’ /home/bols/android_adk/arduino-1.0/libraries/USB_Host_Shield/Max_LCD.cpp:263:15: error: prototype for ‘size_t Max_LCD::write(uint8_t)’ does not match any in class ‘Max_LCD’ /home/bols/android_adk/arduino-1.0/libraries/USB_Host_Shield/Max_LCD.h:101:16: error: candidate is: virtual void Max_LCD::write(uint8_t)
以下のページに変更点がまとめてあります
日本語、サンプルコードなし
http://www.musashinodenpa.com/wiki/
英語、サンプルコードあり
http://blog.makezine.com/2011/12/01/arduino-1-0-is-out-heres-what-you-need-to-know/
arduino-1.0は結構大きな変更だったようですね。
何かの参考になれば幸いです。
コメントを書く
トラックバック - http://d.hatena.ne.jp/bols-blue/20120123/1327324787
リンク元
- 35 http://t.co/mTWXv9n2
- 17 http://t.co/8OU9L0Re
- 10 http://longurl.org
- 10 http://www.androidpub.com/22845
- 8 http://dlucky.tistory.com/108
- 8 http://htn.to/Bb7zYS
- 8 http://htn.to/cX6CKA
- 8 http://www.google.co.jp/url?sa=t&rct=j&q=gerrit&source=web&cd=5&ved=0CFcQFjAE&url=http://d.hatena.ne.jp/bols-blue/20110601/1306928421&ei=AZMeT_KIFMmaiQeFxuDiDQ&usg=AFQjCNH4OSyU4mPXSW99lmnWcDwohUyRqQ
- 7 http://sdw8001.tistory.com/3
- 7 http://www.google.co.jp/url?sa=t&rct=j&q=linux+????????????+gui&source=web&cd=1&ved=0CCUQFjAA&url=http://d.hatena.ne.jp/bols-blue/20080630/1214829150&ei=UbcfT462DdGfmQWjtuzQDg&usg=AFQjCNG2w-xulnub6InWHuipR13Z-Y8FjQ
