We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey,
does someone have experiences with connecting an Arduino Pro Micro or Leonardo to an Android phone over USB ?
Found this https://github.com/mik3y/usb-serial-for-android https://groups.google.com/forum/#!topic/usb-serial-for-android/8-fLuUn2Yns
and this https://github.com/inventit/processing-android-serial.
But I have no idea how I would use the AndroidLib in Processing(AndroidMode) and the second method simply doesnt work for me.
thanks, cheers !
Answers
I was trying now to understand the android API myself http://developer.android.com/guide/topics/connectivity/usb/host.html
But quickly ran into this error:
The method SystemService(String) is undefined for the type usbcom
this seems to be a solution:
http://stackoverflow.com/questions/18990728/android-getsystemservicecontext-usb-service-error
but I dont know how to apply it in processing.
I got it all working without any external library. if someone is interested I can share the code.
Yes sure, it would be great if you share your solution.
ups, now heres the code. everything should be in - but i didnt check if it compiles.
I also had to remove the HDI interface from the pro micro. should be easy to find how to do that. cheers !
setup(){ ??? And which IDE?