VGA 640x480 full graphic driver

Dependents:   vga640x480graphic gps_fastlib Chua-VGA Wolfram-1D-VGA ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vga640x480g.h Source File


00001 #ifndef VGA640X400_H
00002 #define VGA640X400_H
00004 extern unsigned char *vga_font8x16;
00005 void vga_plot(int x,int y,char color);
00006 void vga_putchar(int x,int y,int c,char color);
00007 void vga_line(int x0, int y0, int x1, int y1, char color);
00008 void vga_circle(int x0,int y0, int radius, char color);
00009 void vga_box(int x0, int y0, int x1, int y1,char color);
00010 void vga_putstring(int x,int y, char *s, char color);
00011 void vga_filledbox(int x0, int y0, int x1, int y1,char color);
00012 void vga_scroll();
00013 void vga_cls();
00015 #define WHITE 1
00016 #define BLACK 0
00019 // Always call this as the very first thing in your application
00020 // as it resets the CPU clock to 100MHz. It also resets UART0
00021 // to 9600 baud with the new clock. All other peripherals are off
00022 // after a call to init_vga()
00024 void init_vga(void);
00026 #endif