Author Topic: Digimouse.h and Digikeyboard.h in same sketch  (Read 8409 times)

crdit

  • Newbie
  • *
  • Posts: 4
Digimouse.h and Digikeyboard.h in same sketch
« on: October 30, 2019, 10:12:37 am »
I am having some issues trying to control the mouse and keyboard in the same sketch. I thought I would need to use both of these libraries because I did not see commands in their syntax files that controlled the other.

granzeier

  • Jr. Member
  • **
  • Posts: 73
Re: Digimouse.h and Digikeyboard.h in same sketch
« Reply #1 on: October 31, 2019, 04:19:23 am »
I think that you are correct here. I believe that you will need both libraries.

rubberduck

  • Newbie
  • *
  • Posts: 5
Re: Digimouse.h and Digikeyboard.h in same sketch
« Reply #2 on: October 31, 2019, 08:20:29 am »
I don't think that this will work as every one of the both libs contains a full v-usb which uses the USB Pins exclusively. You might need to create a new combo lib. Maybe this could work but i'm not sure if v-usb supports this.

granzeier

  • Jr. Member
  • **
  • Posts: 73
Re: Digimouse.h and Digikeyboard.h in same sketch
« Reply #3 on: November 01, 2019, 02:20:40 am »
Good point. I had not thought about that - do you know of any library which combines both?

rubberduck

  • Newbie
  • *
  • Posts: 5
Re: Digimouse.h and Digikeyboard.h in same sketch
« Reply #4 on: November 06, 2019, 06:00:04 am »
https://github.com/adafruit/Adafruit-Trinket-USB/tree/master/TrinketHidCombo

Should provide what you want to have. Not tested yet by me.