Skip to content

Instantly share code, notes, and snippets.

@tahnok
Created January 12, 2019 14:52
Show Gist options
  • Save tahnok/e443c8ec302f18ea113e58104bdf3451 to your computer and use it in GitHub Desktop.
Save tahnok/e443c8ec302f18ea113e58104bdf3451 to your computer and use it in GitHub Desktop.
BOOLEAN toggle = TRUE;
UWORD y = 0;
UWORD x = 0;
void loop()
{
for (x = 0; x != WIDTH; x++)
{
for (y = 0; y != HEIGHT; y++)
{
UWORD index = x + y * WIDTH;
background_map[index] = TRUE;
show_board();
}
}
}
BOOLEAN toggle = TRUE;
UWORD y = 0;
UWORD x = 0;
void loop()
{
for (x = 0; x != WIDTH; x++)
{
UWORD index = x + y * WIDTH;
background_map[index] = TRUE;
show_board();
}
y++;
}
BOOLEAN toggle = TRUE;
UWORD y = 0;
UWORD x = 0;
void loop()
{
for (y = 0; y != HEIGHT; y++)
{
UWORD index = x + y * WIDTH;
background_map[index] = TRUE;
show_board();
}
// }
x++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment