Digistump Forums
Back to Digistump.com
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Digistump Forums
»
The Digispark
»
Digispark (Original) Support
»
Digimouse.h and Digikeyboard.h in same sketch
« previous
next »
Print
Pages: [
1
]
Author
Topic: Digimouse.h and Digikeyboard.h in same sketch (Read 8410 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.
Logged
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.
Logged
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.
Logged
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?
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
Digistump Forums
»
The Digispark
»
Digispark (Original) Support
»
Digimouse.h and Digikeyboard.h in same sketch