'Keyboard' only supported on the Arduino Leonardo

299 views
Skip to first unread message

Stefan Dzisiewski-Smith

unread,
Oct 9, 2015, 6:40:38 AM10/9/15
to Developers
Hello everyone

I've started to notice this message appearing with our (Bare Conductive's) HID keyboard examples for the Atmega32u4 based Touch Board when compiled using hourly builds (currently 2015/10/09 12:13). Looking at things, this seems to be being triggered because the Keyboard and Mouse functions are out of scope at compile time. What has changed in the build recipe to cause this? Our hardware plugin is available online at https://github.com/BareConductive/bare-conductive-arduino - has the boards.txt requirement changed recently?

In a broader sense, is this a risk for everyone out there with 32u4 based boards? What can we do to maintain Keyboard / Mouse functionality across these?

Sorry if this is already covered elsewhere, I couldn't find anything.

S

Cristian Maglie

unread,
Oct 9, 2015, 11:42:51 AM10/9/15
to devel...@arduino.cc

Hi Stefan,

may you try to add #include <Mouse.h> or #include <Keyboard.h> on the
sketch?

The error is probably due to a revamp of the USBDevice on the mega32u4
core that is currently in progress, adding the include above should fix
the problem.

C
> --
> You received this message because you are subscribed to the Google
> Groups "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to developers+...@arduino.cc
> <mailto:developers+...@arduino.cc>.


--
Cristian Maglie <c.ma...@arduino.cc>

Stefan Dzisiewski-Smith

unread,
Oct 9, 2015, 11:49:41 AM10/9/15
to devel...@arduino.cc
This sorts it out Cristian - is this something we will need in the long run or should I just leave it as it is and assume this will be fixed by the time that 1.6.6 is released?

S

To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.



--
                   
—————————————————————————
Stefan Dzisiewski-Smith
Head of Technology
—————————————————————————
T   + 44 207 650 7977    |   Web      bareconductive.com                               
M  + 44 779 302 9265    |   Twitter  @BareConductive    

                                                                                                
       See you at Maker Faire Rome | October 16-18 2015   
                                                                                                

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

facchinm

unread,
Oct 9, 2015, 12:45:54 PM10/9/15
to Developers
Hi Stefan,

adding "Mouse.h" or "Keyboard.h" will remain compulsory also after 1.6.6 release, because it is part of USB core refactor and will help having more powerful sketches, occupying resources only if really necessary. 
The error message instead will be greatly improved and will tell to add the right "include" rather than showing cryptic messages about Leonardo (which where wrong also before 1.6.6, btw :D )
An out of date but useful howto can be found here (https://github.com/arduino/Arduino/wiki/PluggableUSB-and-PluggableHID-howto). 

Bye,
M
> an email to developers+unsubscribe@arduino.cc
> <mailto:developers+unsub...@arduino.cc>.


--
Cristian Maglie <c.ma...@arduino.cc>

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

Stefan Dzisiewski-Smith

unread,
Oct 12, 2015, 8:38:05 AM10/12/15
to devel...@arduino.cc
Thanks for this. Something like this should work fine then, right?

#if ARDUINO >= 166
  #include <Keyboard.h>
#endif

The ARDUINO compile time version define still exists right? BTW, which file is this in - I can't find it at all searching the repo!

S

> an email to developers+...@arduino.cc
> <mailto:developers+...@arduino.cc>.


--
Cristian Maglie <c.ma...@arduino.cc>

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.



--
                   
—————————————————————————
Stefan Dzisiewski-Smith
Head of Technology
—————————————————————————
T   + 44 207 650 7977    |   Web      bareconductive.com                               
M  + 44 779 302 9265    |   Twitter  @BareConductive    

                                                                                                
       See you at Maker Faire Rome | October 16-18 2015   
                                                                                                

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

Stefan Dzisiewski-Smith

unread,
Oct 22, 2015, 12:46:22 PM10/22/15
to devel...@arduino.cc
For anyone still playing along, seems that the Arduino define (done in the compiler recipe with a -D parameter) is now in the format 10606 for 1.6.6, as opposed to 166 as it would have been before. Is this a permanent change?

                                                                                                       
       TOUCH BOARD INSTALLER  |  Program with one click   
                                                                                                       

Andrew Kroll

unread,
Oct 23, 2015, 1:58:56 AM10/23/15
to devel...@arduino.cc
Yes. 1.6.6 -> 1.06.06 -> 10606
its a smarter format
Visit my github for awesome Arduino code @ https://github.com/xxxajk

Stefan Dzisiewski-Smith

unread,
Oct 23, 2015, 7:01:44 AM10/23/15
to devel...@arduino.cc
Good stuff - and backward compatible for > compares too :)

S

atajahangir moshayedi

unread,
Jan 27, 2016, 3:49:29 AM1/27/16
to devel...@arduino.cc
hi
is any one working with ACS 712 current measurement module with arduino.
 i saw some emote on http://www.instructables.com/id/How-to-Measure-AC-Current-using-Hall-Effect-Sensor/?ALLSTEPS  which uses the differential amplifier after the module .
 i want to konw , we should  use the differential ckt or no/?
currently i didnt used the ckt and use the module alone and  i have the 2.68 v permanently even after the load connection  .
i check the module with the magnet and its respond proper
any suggestion appreciated
regards

Stefan Dzisiewski-Smith

unread,
Jan 27, 2016, 4:48:46 AM1/27/16
to devel...@arduino.cc
Hi there

Your question isn't in the best place to get answers - this is a mailing list for those working on developing the Arduino platform itself or other intersecting technologies.

For project assistance I would start with the Arduino Forum (http://forum.arduino.cc/) or Stackexchange (http://arduino.stackexchange.com/).

All the best

Stefan

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.



--

————————————————————
Stefan Dzisiewski-Smith
Head of Technology
————————————————————
T   + 44 207 650 7977    |   Web      bareconductive.com
M  + 44 779 302 9265    |   Twitter  @BareConductive

                                                                             
       SPOTLIGHT  |  Best Projects of 2015    • 
                                                                             
Reply all
Reply to author
Forward
0 new messages