Skip to content

Instantly share code, notes, and snippets.

@Arachnid
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arachnid/d237f55cf7839de78662 to your computer and use it in GitHub Desktop.
Save Arachnid/d237f55cf7839de78662 to your computer and use it in GitHub Desktop.
switch (GET_DURATION(*pByte)) {
case 7:
delay(vel * 6);
case 6:
delay(vel * 2);
case 5:
delay(vel * 4);
case 4:
delay(vel * 4);
case 3:
delay(vel * 2);
case 2:
delay(vel * 2);
case 1:
delay(vel * 2);
case 0:
delay(vel * 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment