Full graphic 640x400 monochrome VGA driver library
vga640x400g.h@0:ca7defdc9e44, 2011-07-24 (annotated)
- Committer:
- gertk
- Date:
- Sun Jul 24 11:53:05 2011 +0000
- Revision:
- 0:ca7defdc9e44
version 0.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gertk | 0:ca7defdc9e44 | 1 | #ifndef VGA640X400_H |
gertk | 0:ca7defdc9e44 | 2 | #define VGA640X400_H |
gertk | 0:ca7defdc9e44 | 3 | |
gertk | 0:ca7defdc9e44 | 4 | extern unsigned char *vga_font8x16; |
gertk | 0:ca7defdc9e44 | 5 | void vga_plot(int x,int y,char color); |
gertk | 0:ca7defdc9e44 | 6 | void vga_putchar(int x,int y,int c,char color); |
gertk | 0:ca7defdc9e44 | 7 | void vga_line(int x0, int y0, int x1, int y1, char color); |
gertk | 0:ca7defdc9e44 | 8 | void vga_circle(int x0,int y0, int radius, char color); |
gertk | 0:ca7defdc9e44 | 9 | void vga_box(int x0, int y0, int x1, int y1,char color); |
gertk | 0:ca7defdc9e44 | 10 | void vga_putstring(int x,int y, char *s, char color); |
gertk | 0:ca7defdc9e44 | 11 | void vga_filledbox(int x0, int y0, int x1, int y1,char color); |
gertk | 0:ca7defdc9e44 | 12 | void vga_scroll(); |
gertk | 0:ca7defdc9e44 | 13 | void vga_cls(); |
gertk | 0:ca7defdc9e44 | 14 | |
gertk | 0:ca7defdc9e44 | 15 | #define WHITE 1 |
gertk | 0:ca7defdc9e44 | 16 | #define BLACK 0 |
gertk | 0:ca7defdc9e44 | 17 | |
gertk | 0:ca7defdc9e44 | 18 | // Always call this as the very first thing in your application |
gertk | 0:ca7defdc9e44 | 19 | // as it resets the CPU clock to 100MHz. It also resets UART0 |
gertk | 0:ca7defdc9e44 | 20 | // to 9600 baud with the new clock. All other peripherals are off |
gertk | 0:ca7defdc9e44 | 21 | // after a call to init_vga() |
gertk | 0:ca7defdc9e44 | 22 | |
gertk | 0:ca7defdc9e44 | 23 | void init_vga(void); |
gertk | 0:ca7defdc9e44 | 24 | |
gertk | 0:ca7defdc9e44 | 25 | #endif |