Skip to content

Instantly share code, notes, and snippets.

@Ryanhu1015
Created April 29, 2017 13:58
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 Ryanhu1015/a10dc7bef12d436d5724e2ddcc9cf08c to your computer and use it in GitHub Desktop.
Save Ryanhu1015/a10dc7bef12d436d5724e2ddcc9cf08c to your computer and use it in GitHub Desktop.
simple_snake_game_onLED
for (col = 0; col < 8; col++)
{
switch (col % 2)
{
case 0:// "even" col
for (int row = 0 + repeat; row < 8 + repeat; row++)
{
switch (repeat)
{
.....//something doing here
}
}
case 1:// "odd number" col
for (int row = 7; row >= 0; row--)
{
switch (repeat)
{
.....//something doing here
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment