]> git.defcon.no Git - avrfbosd/commitdiff
Cosmetic changes to test-picture :)
authorJon Langseth <jon.langseth@lilug.no>
Sun, 22 Jul 2012 00:50:42 +0000 (02:50 +0200)
committerJon Langseth <jon.langseth@lilug.no>
Sun, 22 Jul 2012 00:50:42 +0000 (02:50 +0200)
fbosd.c
syncgen/main.c

diff --git a/fbosd.c b/fbosd.c
index fb7ec8332f1104324aeb32f675afe696a07b55b6..aa1127a582eeb554483fc29b01ee661221b6cd53 100644 (file)
--- a/fbosd.c
+++ b/fbosd.c
@@ -123,27 +123,40 @@ int main(void)
        _draw_rect( 24, 11, 80, 70, 1, -1);
        draw_rect( 34, 21, 60, 50, 1);
 
+       fill_circle( 64,46, 45, 1 );
+       fill_circle( 64,46, 40, 0 );
 
        _draw_circle( 64,46, 35, 1, -1 );
        draw_circle( 64,46, 30, 1 );
-       fill_circle( 64,46, 25, 1 );
-       fill_circle( 64,46, 20, 0 );
-       fill_rect( 44, 31, 40, 30, 1);
-       fill_rect( 54, 41, 20, 10, 0);
+       fill_rect( 38, 25, 52, 42, 1);
+       fill_rect( 41, 28, 46, 36, 0);
+
+       //fill_rect( 54, 41, 20, 10, 0);
 
        for (;;)
        {
                PORTB ^= 0x002;
+               for ( int j = 0; j < 92; j++ )
+               {
+                       draw_line(0,0,128,j, 2);
+                       draw_line(128,0,0,j, 2);
+                       draw_line(0,92,128,92-j, 2);
+                       draw_line(128,92,0,92-j, 2);
+
+                       Delay_ms(2);
 
-               for ( int j = 8; j < 89; j++ )
+               }
+               for ( int j = 0; j < 92; j++ )
                {
-                       draw_line(8,88-j,120,j, 2);
-                       draw_line(120,j,8,88-j, 2);
-                       Delay_ms(5);
-                       draw_line(8,88-j,120,j, 2);
-                       Delay_ms(5);
+                       draw_line(0,0,128,j, 2);
+                       draw_line(128,0,0,j, 2);
+                       draw_line(0,92,128,92-j, 2);
+                       draw_line(128,92,0,92-j, 2);
+
+                       Delay_ms(2);
+
                }
-               Delay_ms(150);
+               Delay_ms(250);
        }
 }
 
index 564ec67457384327c610df07a88d542a4d61ebf4..3fa6cea892f4c0d790f23942d1c6816ee30a2d2c 100644 (file)
@@ -144,7 +144,7 @@ ISR (TIMER0_COMPA_vect)
 
                if ( t_line > 118 && t_line < 118 + (2*testimg_height) )
                {
-                       _delay_us(12);
+                       _delay_us(12.3);
                        asm_render_line();
 
                        if( !stretch )