]> git.defcon.no Git - avrfbosd/blobdiff - fbosd.c
Adding some test-files
[avrfbosd] / fbosd.c
diff --git a/fbosd.c b/fbosd.c
index c30ee9b5aa3606601ef10f6c07168f890560ca64..e4524aaf52bd339ea1f9cb2894cc2b93bbfa5407 100644 (file)
--- a/fbosd.c
+++ b/fbosd.c
@@ -2,10 +2,12 @@
 #include <avr/interrupt.h>
 #include <util/delay.h>
 #include <stdlib.h>
+#include <avr/pgmspace.h>
 
 #include "video_properties.h"
 #include "render.h"
 #include "draw.h"
+#include "font.h"
 
 void (*line_handler)( void );
 
@@ -137,6 +139,7 @@ int main(void)
        // Enable interrupts globally.
        sei();
 
+/*     
        // Do some static drawing :P
        set_pixel(28, 8, 1);
        set_pixel(92, 82, 1);
@@ -188,6 +191,28 @@ int main(void)
                }
                Delay_ms(250);
        }
+*/     
+
+       for (int q = 0; q < font_height; q++ )
+       {
+               //for (int r = 0; r < font_width; r++ )
+               //{
+                       uint8_t t = pgm_read_byte(&(font[0][q]));
+                       screen_buffer[q*hres_bytes+3+hres_bytes] |= t;
+                       
+                       t = pgm_read_byte(&(font[1][q]));
+                       screen_buffer[q*hres_bytes+5+hres_bytes] |= t;
+
+                       t = pgm_read_byte(&(font[2][q]));
+                       screen_buffer[q*hres_bytes+6+hres_bytes] |= t;
+
+               //}
+       }
+       
+       for (;;)
+       {
+       
+       }
 }