Created
April 29, 2017 13:58
-
-
Save Ryanhu1015/a10dc7bef12d436d5724e2ddcc9cf08c to your computer and use it in GitHub Desktop.
simple_snake_game_onLED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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