Coder Social home page Coder Social logo

msoftware / android_open_accessory_lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schroeder-/android_open_accessory_lib

0.0 2.0 0.0 4.71 MB

a library to talk to your android device over USB

License: GNU General Public License v3.0

Makefile 1.73% Java 47.08% C++ 51.18%

android_open_accessory_lib's Introduction

Android Open Accessory Lib

Intro

To use this copy "openaccessory.cpp" and "openaccessory.hpp" into your project. For an example for the Nexus S just type "make".

Android

For more information about the Android Software look at the android dir.

Linux

you need to install libusb-1.0 or libusbx from your package manager. now you can compile, take a look in the Makefile how to compile this files. to use the example you might change the device pid and vid to your phone.

Windows MinGW

to use this libary you need libusbx.

  • Download the latest windows binary from libusbx. From MinGW32/dll or MinGW64/dll copy libusb-1.0.dll and libusb-1.0.dll.a to your project folder.
  • Also copy the libusb.h header to your source code.

to use the example you might change the device pid and vid to your phone.

at the first time time your device is changed into open accessory windows won't find a driver. go into the hardware manager and select the "windows driver" folder from this project.

now you can enjoy your open accessory.

Windows VS C++

works.

  • Make a new Project.
  • Get usblibx working in this project.
  • Add the libary.

Limitations

  • At the moment you can only use blocking functions. Feel free to contribute such functionality.
  • Not well tested.
  • Add a guide to use under linux without root privileges.
  • Only tested with Nexsus S

Why C++

I have to do some c++ in university, so I choose this project to refresh some c++ and use some of the new c++11 features like array, auto usw. I think the project isn't comples, feel free to build a c version or copy it to python via pyusb. Remember the license ;)

Author

Alexander Schrode (midix01[at]googlemail.com)

android_open_accessory_lib's People

Contributors

schroeder- avatar

Watchers

Michael jentsch avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.