LowPowerLab Forum

Hardware support => Moteino M0 => Topic started by: paulmalko on June 21, 2018, 12:11:31 PM

Title: Using Moteino M0 as a USB keyboard
Post by: paulmalko on June 21, 2018, 12:11:31 PM
Can the Moteino M0 behave like a USB keyboard?  My application is to use it as a game controller for a retro arcade and, hopefully, the ras-pi will think it's a generic keyboard.

I'm asking because the Arduino Zero has 2 USB ports, but the Motino M0 only has one.

Thanks.
Paul
Title: Re: Using Moteino M0 as a USB keyboard
Post by: Felix on June 21, 2018, 01:03:04 PM
Sure, it can act both as:


Does this make sense?
See the M0 guide page (https://lowpowerlab.com/guide/moteino/moteinom0/) for some examples (arduino built in USB examples) that work great on Moteino M0.

You would then need a library for any other USB-device (like a joystick) that would allow the MoteinoM0 to interact with it, similar to the Ardiono Keyboard.h library.
Title: Re: Using Moteino M0 as a USB keyboard
Post by: paulmalko on June 21, 2018, 03:14:07 PM
Thanks for the info.  Sorry, for bothering you, I didn't recognize that web page expanded.
Title: Re: Using Moteino M0 as a USB keyboard
Post by: Felix on June 21, 2018, 05:01:03 PM
You're welcome, no problem at all,
I try to add more info as I develop it or it becomes available, or even as folks request it.
Thanks for being active in the forum, and if you end up doing something cool with MoteinoM0 USB Host/Device modes, please consider sharing your project!