Skip to content

Instantly share code, notes, and snippets.

@remisarrailh
Created May 11, 2019 23:23
Show Gist options
  • Save remisarrailh/d75436608dbc604c83e5eadd7e0407c9 to your computer and use it in GitHub Desktop.
Save remisarrailh/d75436608dbc604c83e5eadd7e0407c9 to your computer and use it in GitHub Desktop.
void loop() {
if (tick.isExpired()) {
drawAnimation();
pos_x = pos_x + X;
if (pos_x > OLED_WIDTH + cannon_width) {
pos_x = -cannon_width;
}
tick.repeat();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment