USB - IR-Receiver, HID - Keyboard detection of Picomite USB


Author Message
Arne
Regular Member

Joined: 05/01/2025
Location: Germany
Posts: 62
Posted: 04:42pm 11 Feb 2025      

@ Frank

Here a short description:

1.) On Arduino IDE first install „Board driver“ and Digistump (I used Version 1.6.8):

Details see: https://github.com/ArminJo/DigistumpArduino#installation

2.) Install IRsmalldecoder: https://github.com/LuisMiCa/IRsmallDecoder

3.) Install out of Adafruit-Trinket-USB „Trinket Keyboard“: https://github.com/adafruit/Adafruit-Trinket-USB
On Arduino IDE select with „include library-add ZIP library… “ folder „Trinket Keyboard“. Must not be a ZIP file!

4.)Find library - folder on PC (on my PC it is located C:\Users\myname\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.8\libraries\DigisparkKeyboard) and exchange „usbconfig.h“ file to the enclosed file:

usbconfig.zip


5.) Load following test file to Arduino IDE and compile/write to Digispark.


Test_NEC.zip


6.) To test the IR-input open „Windows Edit“ and plug Digispark into PC.
Depend on the selected IR-remote (NEC/SIRC12 etc.) the relevant code will be typed on the edit - window of the PC if abutton is pressed. If you select IR_SMALLD_SIRC12 instead of IR_SMALLD_ NEC before compiling at the Test-Program you can directly send IR-codes from the Picomite via command IR SEND pin, dev, key to the receiver.

If you want to use „special Keyboard codes“ see further description for Adafruit-Trinket-Keyboard. I checked the „cursor control codes up and down“ they worked on PC and Picomite.


Arne