X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=syncgen%2Fmain.c;h=3186c914f40704ff88db7a650dc2a49e68a79752;hb=2ea18f7e751c7464c664362f7907529e9fc869f0;hp=e67d582bd0b1a1f15259934e26d1604af55f6846;hpb=a94a046ca269a05672cb8b825f24056ce2e39397;p=avrfbosd diff --git a/syncgen/main.c b/syncgen/main.c index e67d582..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,11 +138,11 @@ 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) ) { - _delay_us(12); + _delay_us(12.3); asm_render_line(); // Stretch the image vertically by repeating the same line twice @@ -152,7 +154,8 @@ ISR (TIMER0_COMPA_vect) if ( renderLine > ((testimg_height*hres)-1) ) renderLine = 0; } else stretch--; } - } +#endif + } return; }