converted arduino library