make it exitable
This commit is contained in:
parent
7c8fa4048c
commit
41e8e91aa7
|
@ -31,8 +31,7 @@ void display() {
|
||||||
*p++ = on ? '#' : ' ';
|
*p++ = on ? '#' : ' ';
|
||||||
*p++ = on ? '#' : ' ';
|
*p++ = on ? '#' : ' ';
|
||||||
}
|
}
|
||||||
*p = '\n';
|
*p++ = '\n';
|
||||||
p++;
|
|
||||||
}
|
}
|
||||||
write(1, clear_screen, sizeof(clear_screen)-1);
|
write(1, clear_screen, sizeof(clear_screen)-1);
|
||||||
write(1, buf, sizeof(buf));
|
write(1, buf, sizeof(buf));
|
||||||
|
@ -70,6 +69,12 @@ int main(void) {
|
||||||
PocketInit();
|
PocketInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LOOP
|
||||||
|
uint8_t loop = 1;
|
||||||
|
#else
|
||||||
|
uint8_t loop = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
do {
|
do {
|
||||||
// read all frames
|
// read all frames
|
||||||
uint8_t* p = _binary_badapple_bin_start;
|
uint8_t* p = _binary_badapple_bin_start;
|
||||||
|
@ -94,12 +99,15 @@ int main(void) {
|
||||||
px += count;
|
px += count;
|
||||||
}
|
}
|
||||||
display();
|
display();
|
||||||
|
|
||||||
|
#ifdef __POCKETSTATION__
|
||||||
|
if(PAD_STATUS & PAD_BUTTON) {
|
||||||
|
loop = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef LOOP
|
} while(loop);
|
||||||
} while(1);
|
|
||||||
#else
|
|
||||||
} while(0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __POCKETSTATION__
|
#ifdef __POCKETSTATION__
|
||||||
PocketExit();
|
PocketExit();
|
||||||
|
|
Loading…
Reference in New Issue