From: Jon Langseth Date: Fri, 5 Jul 2013 10:13:50 +0000 (+0200) Subject: Demo updated to use new clear_screen() X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=avrfbosd Demo updated to use new clear_screen() --- diff --git a/fbosd.c b/fbosd.c index 3fe1991..099e02f 100644 --- 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); - + /* LM1881 pins are connected to: INT0 / PCINT18 / PD2 <- VSYNC INT1 / PCINT19 / PD3 <- CSYNC @@ -145,9 +145,7 @@ int main(void) for (;;) { - fill(c_BLACK); Delay_ms(100); - 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); - fill(c_BLACK); + clear_screen(); // Do some static drawing :P set_pixel(28, 8, 1); @@ -211,7 +209,7 @@ int main(void) } Delay_ms(250); - fill(c_BLACK); + clear_screen(); 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); - fill_rect(hp, vp, testimage_width, testimage_height, 0); + //fill_rect(hp, vp, testimage_width, testimage_height, 0); + clear_screen(); } + clear_screen(); } }