From: Jon Langseth Date: Thu, 27 Jun 2013 15:50:50 +0000 (+0200) Subject: Changed syncgen to allow disabling of background image. By defining DRAW_LOGO the... X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=214508ea1541c0670c4fa7453ec253eba9337232;p=avrfbosd Changed syncgen to allow disabling of background image. By defining DRAW_LOGO the backgound will be drawn. If not defined (undef'd) only sync-signals will be generated. --- 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; }