% Blinking Bonus # A morse code message for you The USB stick can transmit its own name. Have some USB blinking fun in the wee hours of the day. Of course the message is expandable as you see fit. You can find it in the `assets` folder and run it with the following command: `python blinking-bonus.py`. Happy blinking!
#!/usr/bin/python import os message = "-. . - .-- --- .-. -.- ... --- ..-. --- -. . ... --- -. ." for char in message: if char == "-": print("long") cmd = 'dd if=/dev/urandom of=buffer bs=1M count=1 2> /dev/null; sleep 5' os.system(cmd) if char == '.': print("short") cmd = 'dd if=/dev/urandom of=buffer bs=1M count=1 2> /dev/null; sleep 3' os.system(cmd) if char == ' ': print("space") cmd = 'dd if=/dev/urandom of=buffer bs=1M count=1 2> /dev/null; sleep 10' os.system(cmd)