From 214508ea1541c0670c4fa7453ec253eba9337232 Mon Sep 17 00:00:00 2001 From: Jon Langseth Date: Thu, 27 Jun 2013 17:50:50 +0200 Subject: [PATCH 1/1] 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. --- syncgen/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2