Arduino lib and test sketch