Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any information for using HID with arcore? #9

Open
Reggi3 opened this issue Mar 3, 2014 · 3 comments
Open

Any information for using HID with arcore? #9

Reggi3 opened this issue Mar 3, 2014 · 3 comments

Comments

@Reggi3
Copy link

Reggi3 commented Mar 3, 2014

Hi, I read that arcore is capable of being a HID firmware, do you have any examples of it's usage at all?

@rkistner
Copy link
Owner

rkistner commented Mar 3, 2014

What exactly do you want to do? What board are you using? Note that you'll need an Arduino Leonardo, Arduino Micro or similar board.

If you just want to do keyboard and/or mouse emulation, you don't need arcore at all - you can just use the standard Arduino cores. See this example.

If you want to emulate a different HID device, for example a joystick, you'll need to write your own USB firmware for the Arduino. For this you can use arcore as a starting point. You can look at how the keyboard and mouse is implemented in the following files:

https://github.com/rkistner/arcore/blob/master/avr/cores/arcore/HID.cpp
https://github.com/rkistner/arcore/blob/master/avr/cores/arcore/USBAPI.h
https://github.com/rkistner/arcore/blob/master/avr/cores/arcore/USBDesc.h

Note that arcore is forked from the main Arduino codebase, and the HID functionality is exactly the same. However, the fact that it's a separate repository should make it easier to modify/extend.

@Reggi3
Copy link
Author

Reggi3 commented Mar 3, 2014

Hi, I'm using an arduino leonardo, I've been using arcore extensively for midi for a few weeks, now I have a project where I'd like to be able to send raw HID.

@rkistner
Copy link
Owner

rkistner commented Mar 4, 2014

Ok, in that case you'll have to write the USB firmware from the USB HID specification yourself, as mentioned above.

My USB notes might also help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants