From: Jon Langseth Date: Sun, 22 Jul 2012 00:50:42 +0000 (+0200) Subject: Cosmetic changes to test-picture :) X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=587bb59e6479e677662c14c4c65f0927ad47fe84;p=avrfbosd Cosmetic changes to test-picture :) --- diff --git a/fbosd.c b/fbosd.c index fb7ec83..aa1127a 100644 --- 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); } } diff --git a/syncgen/main.c b/syncgen/main.c index 564ec67..3fa6cea 100644 --- a/syncgen/main.c +++ b/syncgen/main.c @@ -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 )