This is a version of vga640x480g customized to work well with MbedConsole
Fork of vga640x480g by
vga640x480g.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 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() 00023 00024 void init_vga(void); 00025 00026 #endif
Generated on Sun Jul 17 2022 04:22:51 by 1.7.2