]> git.defcon.no Git - avrfbosd/commitdiff
Changed syncgen to allow disabling of background image. By defining DRAW_LOGO the...
authorJon Langseth <jon.langseth@lilug.no>
Thu, 27 Jun 2013 15:50:50 +0000 (17:50 +0200)
committerJon Langseth <jon.langseth@lilug.no>
Thu, 27 Jun 2013 15:50:50 +0000 (17:50 +0200)
syncgen/main.c

index 1dbfefb67913f324b1f547a93705c4c2b0f05923..3186c914f40704ff88db7a650dc2a49e68a79752 100644 (file)
@@ -5,6 +5,8 @@
 #define ZERO  PORTB &= 0xFC
 #define BLACK PORTB |= 0x01
 
 #define ZERO  PORTB &= 0xFC
 #define BLACK PORTB |= 0x01
 
+#define DRAW_LOGO
+
 //          -----..-----   ^
 //          | ___        |  |
 // Com RST -| RST    VCC |-`
 //          -----..-----   ^
 //          | ___        |  |
 // 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;
 
                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) )
                {
                // 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--;
                }
                                if ( renderLine > ((testimg_height*hres)-1) ) renderLine = 0;
                        } else stretch--;
                }
-       }
+#endif
+               }
        return;
 }
 
        return;
 }