LeoStick Updated Libraries to work with Arduino 1.0.1!?!?!?

A shrunk down Leonardo-compatible board, thumb drive sized with native USB support. [Product info]
Post Reply
cjdelphi
Posts: 36
Joined: Mon Mar 19, 2012 10:11 am

LeoStick Updated Libraries to work with Arduino 1.0.1!?!?!?

Post by cjdelphi » Mon Feb 11, 2013 7:18 am

KeyboardMessage.cpp: In function 'void setup()':
KeyboardMessage:26: error: 'class Keyboard_' has no member named 'begin'


When are we going to see updated code so i can do simply this!

Keyboard.press(KEY_TAB);

until then, how do i get around this? I need to send the Tab Key.

Keyboard.print works fine however...

efry
Posts: 6
Joined: Tue May 29, 2012 12:10 am

Re: LeoStick Updated Libraries to work with Arduino 1.0.1!?!

Post by efry » Tue Feb 12, 2013 2:24 am

Hi cjdelphi,

Have a look at the discussion in this thread.

"Keyboard and Mouse HID"
viewtopic.php?f=27&t=3071

I think this should fix your issue.

Regards,
Eric

cjdelphi
Posts: 36
Joined: Mon Mar 19, 2012 10:11 am

Re: LeoStick Updated Libraries to work with Arduino 1.0.1!?!

Post by cjdelphi » Tue Feb 12, 2013 7:04 am


Re: Keyboard and Mouse HID

Postby efry » Wed Dec 19, 2012 12:09 pm
Hi,

The link mentioned by tronixstuff doesn't contain the correct keyboard handler code. I had to patch that in from the official ardiuino leonardo hardware profile.

Here's my modified version of

LeoStick/cores/arduino/HID.cpp

http://pastebin.com/9ZqnkCiq

and

LeoStick/cores/arduino/USBAPI.h

http://pastebin.com/Tp4NAS4Z

If you replace those files in your leostick hardware profile then you should be in business.

Regards,
Eric

efry

Posts: 4
Joined: Tue May 29, 2012 12:10 am
Have you tried the links before posting that?

efry
Posts: 6
Joined: Tue May 29, 2012 12:10 am

Re: LeoStick Updated Libraries to work with Arduino 1.0.1!?!

Post by efry » Tue Feb 12, 2013 10:38 am

Sorry, No I didn't. :(

Looks like I set an expiry on those paste links.

I've attached the files to this post.

Regards,
Eric
Attachments
USBAPI.h
(5 KiB) Downloaded 198 times
HID.cpp
(13.46 KiB) Downloaded 203 times

cjdelphi
Posts: 36
Joined: Mon Mar 19, 2012 10:11 am

Re: LeoStick Updated Libraries to work with Arduino 1.0.1!?!

Post by cjdelphi » Sat Feb 16, 2013 2:03 pm

It's 1am here thank you for the reply and fix :) ill get to work on it first thing thanks!

Post Reply