To get your Trinket and Pi connected, you’re going to need a few bits and bobs. The 3 remaining pins are reserved for power, ground and reset. Two of these can be configured as analog inputs and two as PWM outputs. The skills you pick up from tinkering with a Trinket and learning how to program it will also be transferable should you decide to try any Arduino products. One that you can not only use with your Pi, but as a stand-alone controller. The trinket is a cheap and flexible alternative to a PWM driver, or an analog to digital converter.
The Trinket can do many things that your Pi either can't do, or isn't great at: The Trinket and the Pi are a very complementary pair. Warning: Make sure you use the 3.3v Trinket, don't connect a 5v one directly to your Pi! Why Combine A Trinket And A Pi? Programming the Adafruit Trinket from your Raspberry Pi