Good catch -- yes, this would cause problems on a 16 port iPIO. I never liked this method and meant to change it but forgot to. Array#pack is the correct way to do this conversion. I've updated the method.