import binascii k = "YOU DID IT! Way to go killah! key{http://imgur.com/XYlLNrk}"; kl = len(k)*8; bd = (bin(int(binascii.hexlify(k),16))[2:]).zfill(kl); for b in bd: if b == '0': print "digitalWrite(led,LOW); // Zero"; elif b == '1': print "digitalWrite(led,HIGH); // One"; print "delay(1000);" # For normalization print "digitalWrite(led,LOW);"; print "delay(1000);"