]> git.defcon.no Git - avrfbosd/commitdiff
Demo updated to use new clear_screen() master
authorJon Langseth <jon.langseth@lilug.no>
Fri, 5 Jul 2013 10:13:50 +0000 (12:13 +0200)
committerJon Langseth <jon.langseth@lilug.no>
Fri, 5 Jul 2013 10:13:50 +0000 (12:13 +0200)
fbosd.c

diff --git a/fbosd.c b/fbosd.c
index 3fe199163b461e1ff216608cfc92987f08ef293c..099e02f52a458553dfc9f709c93df2e67f7ea49a 100644 (file)
--- a/fbosd.c
+++ b/fbosd.c
@@ -127,7 +127,7 @@ int main(void)
        screen_buffer = (uint8_t*) malloc( hres_bytes * VRES * sizeof(uint8_t) );
        // And make sure it's cleared
        fill(c_BLACK);
        screen_buffer = (uint8_t*) malloc( hres_bytes * VRES * sizeof(uint8_t) );
        // And make sure it's cleared
        fill(c_BLACK);
-
+       
        /* LM1881 pins are connected to:
        INT0 / PCINT18 / PD2 <- VSYNC
        INT1 / PCINT19 / PD3 <- CSYNC
        /* LM1881 pins are connected to:
        INT0 / PCINT18 / PD2 <- VSYNC
        INT1 / PCINT19 / PD3 <- CSYNC
@@ -145,9 +145,7 @@ int main(void)
 
        for (;;)
        {
 
        for (;;)
        {
-               fill(c_BLACK);
                Delay_ms(100);
                Delay_ms(100);
-               
                draw_string( 2, 2,  "!\"#$%&'()*+-./");
                draw_string( 2, 10, "01234567890");
                draw_string( 2, 18, ":;<=>?@");
                draw_string( 2, 2,  "!\"#$%&'()*+-./");
                draw_string( 2, 10, "01234567890");
                draw_string( 2, 18, ":;<=>?@");
@@ -164,7 +162,7 @@ int main(void)
                draw_char( 40, 80, 130);
 
                Delay_ms(500);
                draw_char( 40, 80, 130);
 
                Delay_ms(500);
-               fill(c_BLACK);
+               clear_screen();
 
                // Do some static drawing :P
                set_pixel(28, 8, 1);
 
                // Do some static drawing :P
                set_pixel(28, 8, 1);
@@ -211,7 +209,7 @@ int main(void)
 
                }
                Delay_ms(250);
 
                }
                Delay_ms(250);
-               fill(c_BLACK);
+               clear_screen();
                
                int8_t hp = 10;
                int8_t vp = 10;
                
                int8_t hp = 10;
                int8_t vp = 10;
@@ -227,8 +225,10 @@ int main(void)
 
                        pgm_draw_8bpp_bitmap(hp, vp, testimage_width, testimage_height, testimage);
                        Delay_ms(10);
 
                        pgm_draw_8bpp_bitmap(hp, vp, testimage_width, testimage_height, testimage);
                        Delay_ms(10);
-                       fill_rect(hp, vp, testimage_width, testimage_height, 0);
+                       //fill_rect(hp, vp, testimage_width, testimage_height, 0);
+                       clear_screen();
                }
                }
+               clear_screen();
                
        }
 }
                
        }
 }