Here is a list of published Narfduino libraries NarfduinoHalfBridge – Library functions to safely control a Half-H-Bridge.