Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: crdit on October 30, 2019, 10:12:37 am

Title: Digimouse.h and Digikeyboard.h in same sketch
Post by: crdit 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.
Title: Re: Digimouse.h and Digikeyboard.h in same sketch
Post by: granzeier on October 31, 2019, 04:19:23 am
I think that you are correct here. I believe that you will need both libraries.
Title: Re: Digimouse.h and Digikeyboard.h in same sketch
Post by: rubberduck 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.
Title: Re: Digimouse.h and Digikeyboard.h in same sketch
Post by: granzeier 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?
Title: Re: Digimouse.h and Digikeyboard.h in same sketch
Post by: rubberduck on November 06, 2019, 06:00:04 am
https://github.com/adafruit/Adafruit-Trinket-USB/tree/master/TrinketHidCombo (https://github.com/adafruit/Adafruit-Trinket-USB/tree/master/TrinketHidCombo)

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