An arduino library for square wave manipulation