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