A Trinket firmware that sets the tiny board as a HID device, so it's possible to send and receive messages via USB.
The sketch implements a very simple protocol: sending data to the board toggles power to pin 1. Every time the pin state changes the Trinket sends back a 0 or 1, depending on the new pin status.
GPL v.3