X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=syncgen%2Fmain.c;h=3186c914f40704ff88db7a650dc2a49e68a79752;hb=2ea18f7e751c7464c664362f7907529e9fc869f0;hp=1dbfefb67913f324b1f547a93705c4c2b0f05923;hpb=bcd052520233e777bc7724f960b23a5ac861b817;p=avrfbosd diff --git a/syncgen/main.c b/syncgen/main.c index 1dbfefb..3186c91 100644 --- a/syncgen/main.c +++ b/syncgen/main.c @@ -5,6 +5,8 @@ #define ZERO PORTB &= 0xFC #define BLACK PORTB |= 0x01 +#define DRAW_LOGO + // -----..----- ^ // | ___ | | // Com RST -| RST VCC |-` @@ -136,7 +138,7 @@ ISR (TIMER0_COMPA_vect) int t_line = line; // Reducing line-count complexity by half ;) t_line = ( line > 312 ) ? line - 312 : line; - +#ifdef DRAW_LOGO // Draw the logo-image centered vertically if ( t_line > 118 && t_line < 118 + (2*testimg_height) ) { @@ -152,7 +154,8 @@ ISR (TIMER0_COMPA_vect) if ( renderLine > ((testimg_height*hres)-1) ) renderLine = 0; } else stretch--; } - } +#endif + } return; }