Digistump Forums
The Digispark => Digispark (Original) Support => Topic started 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.
-
I think that you are correct here. I believe that you will need both libraries.
-
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.
-
Good point. I had not thought about that - do you know of any library which combines both?
-
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.