Continuing the discussion from Digistump Digispark no longer available?:
hello there, i tried the ATTinyCore... but its having error because my code uses a DigiKeyboard that was included in the digistump library... how can i make it work? thank you
Continuing the discussion from Digistump Digispark no longer available?:
hello there, i tried the ATTinyCore... but its having error because my code uses a DigiKeyboard that was included in the digistump library... how can i make it work? thank you
hello @GolamMostafa, i need help... im running the ATTinyCore but the code im using is using digikeyboard... which is not included in ATTinyCore ... how can i use digikeyboard or other ways to emulate a keyboard stroke
please help ... thank you very much
In my opinion the only real solution is to recover the old digispark-core and the digispark-driver archives. just done on my win10 pc with the zip files archived 4 years ago.
Hello, im having the same issue right now. Did you find a solution?
If you need keyboard emulation for a project, the best solution will be to get a different board that has native USB capabilities. The maintainer of ATTinyCore, DrAzzy/SpenceKonde intentionally did not add the "DigiKeyboard" library to ATTinyCore because they felt that it was not sufficiently functional:
Warning: This doesn't get you USB from within your sketch
In theory VUSB could be used to make a sketch act as a mouse, keyboard, MIDI device, or other USB device. In practice, this doesn't really work. The original digispark core bent over backwards to try to make it work, and it still didn't really work very well, Your best bet would be to disable millis, and make sure that nothing that disables interrupts can occur while you expect USB communication. There are also considerable obstacles to VUSB drivers on Windows platforms. I was only able to get two examples to compile. One example uploaded and gave "this device has malfunctioned", the other, which pretended to be a mouse, made the cursor go crazy for a few seconds before crashing. After discussions with individuals who know more about the USB protocol than I, I concluded that it would require throwing out too much of the Arduino API functionality to enable such a niche use. when there are always the u2 and u4 series
The Arduino Micro is a very nice board for keyboard emulation:
https://docs.arduino.cc/hardware/micro
Other boards that have the functionality:
If you are really set on trying to do keyboard emulation with the Digispark board, you can use this alternative boards platform:
I'll provide instructions you can follow to do that:
https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json
Successfully installed platform ...
You will now be able to compile sketches that use the "DigiKeyboard" library. You can select File > Examples > DigiKeyboard > Keyboard from the Arduino IDE menus to open an example sketch that demonstrates the usage of the "DigiKeyboard" library.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.