Full graphic 640x400 monochrome VGA driver library

Dependents:   vga640x400graphic

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vga640x400g.h Source File

vga640x400g.h

00001 #ifndef VGA640X400_H
00002 #define VGA640X400_H
00003 
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();
00014 
00015 #define WHITE 1
00016 #define BLACK 0
00017  
00018 // Always call this as the very first thing in your application
00019 // as it resets the CPU clock to 100MHz. It also resets UART0
00020 // to 9600 baud with the new clock. All other peripherals are off
00021 // after a call to init_vga()
00022 
00023 void init_vga(void);
00024 
00025 #endif