You can use Firmata. There are several Firmata sketches to choose from. The standard one is probably most appropriate. There are examples provided with Firmata for both sides.
You can use Firmata. There are several Firmata sketches to choose from. The standard one is probably most appropriate. There are examples provided with Firmata for both sides.