Skip to content

Instantly share code, notes, and snippets.

@ss23
Created March 20, 2012 05:30
Show Gist options
  • Save ss23/2131679 to your computer and use it in GitHub Desktop.
Save ss23/2131679 to your computer and use it in GitHub Desktop.
#include "/home/200/ex2/lib.h"
void counter(int value, int direction) {
if (direction != 1) {
direction = -1;
}
int i;
for (i = 0; (i == 0) || (i == value); i = i + direction) {
writessd(i);
delay100();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment