Skip to content

Instantly share code, notes, and snippets.

@gskielian
Created August 1, 2013 21:50
Show Gist options
  • Select an option

  • Save gskielian/6135678 to your computer and use it in GitHub Desktop.

Select an option

Save gskielian/6135678 to your computer and use it in GitHub Desktop.
freq to arduino
cat freq.txt | sed 's/ /,/g' | sed 's/[^0-9,d]//g' | sed 's/^,/tone(9,/g' | sed 's/$/);/g' | sed 's/d,/delay(/g' | sed 's/^);//g' >gist.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment