

I thought that I might be able to draw inspiration from something they had done. That’s when I found the USB Keyboard project, a writeup on using the Trinket as a USB Keyboard. That is the point when I looked at my old PS/2 keyboard which I loved but couldn’t use with my laptop, and that’s when it hit me, I wonder if I could get the Trinket to bridge my Keyboard to USB? I thought that would be a cool project, though I didn’t want just two buttons as shown in the project. To start, I downloaded and installed the PS/2 library for the Arduino. I then created a PS/2 cable bread board break out (see picture below), and wired it to my Mega, which I loaded with the Serial example. I wired everything up according to the directions in the library and I was able to get it to work. The next thing I did, was setup my computer to use the Trinket. After which I loaded the TrinketKeyboard library and tested that out. Now that I knew I was able to read the keyboard and that I was able to use the Trinket, I thought I was set. What I did next was simple, I created a new sketch with both library’s in place, along with the bare minimum amount of code needed to use each function. I knew that there was not a lot of memory available to me so I wanted to know if the code would fit. Little to my surprise, it didn’t and the compiler throw all kinds of errors. The size of the code was too large to fit so I needed to find a way to cut down the code size as much as I could. I just went to town, anything I thought I wouldn’t need got cut.

I figured out which were the important functions that made everything work and all the extra functionally stuff was removed.

I then repeated the process for the USB Keyboard library. #Adafruit trinket not recognized windowsĪny code that was there that I felt didn’t need to be for my project was cut.#Adafruit trinket not recognized driver.#Adafruit trinket not recognized serial.

#Adafruit trinket not recognized how to.
