Demo of low res colour vga video for stm32f3 discovery board

Dependencies:   STM32F3-Discovery-minimal

Fork of Space_Invaders_Demo by Martin Johnson

Committer:
MartinJohnson
Date:
Tue Mar 01 02:40:19 2016 +0000
Revision:
0:404dae88af71
Child:
3:93e488fbb8a2
space invaders game

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MartinJohnson 0:404dae88af71 1 /***************************************************************************
MartinJohnson 0:404dae88af71 2 * STM32 VGA demo
MartinJohnson 0:404dae88af71 3 * Copyright (C) 2012 Artekit Italy
MartinJohnson 0:404dae88af71 4 * http://www.artekit.eu
MartinJohnson 0:404dae88af71 5 * Written by Ruben H. Meleca
MartinJohnson 0:404dae88af71 6
MartinJohnson 0:404dae88af71 7 ### font5x7.c
MartinJohnson 0:404dae88af71 8
MartinJohnson 0:404dae88af71 9 # This program is free software; you can redistribute it and/or modify
MartinJohnson 0:404dae88af71 10 # it under the terms of the GNU General Public License as published by
MartinJohnson 0:404dae88af71 11 # the Free Software Foundation; either version 2 of the License, or
MartinJohnson 0:404dae88af71 12 # (at your option) any later version.
MartinJohnson 0:404dae88af71 13 #
MartinJohnson 0:404dae88af71 14 # This program is distributed in the hope that it will be useful,
MartinJohnson 0:404dae88af71 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
MartinJohnson 0:404dae88af71 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MartinJohnson 0:404dae88af71 17 # GNU General Public License for more details.
MartinJohnson 0:404dae88af71 18 #
MartinJohnson 0:404dae88af71 19 # You should have received a copy of the GNU General Public License
MartinJohnson 0:404dae88af71 20 # along with this program; if not, write to the Free Software
MartinJohnson 0:404dae88af71 21 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
MartinJohnson 0:404dae88af71 22
MartinJohnson 0:404dae88af71 23 ***************************************************************************/
MartinJohnson 0:404dae88af71 24 #include "gdptypes.h"
MartinJohnson 0:404dae88af71 25
MartinJohnson 0:404dae88af71 26 const u8 gdiSystemFont[] =
MartinJohnson 0:404dae88af71 27 {
MartinJohnson 0:404dae88af71 28 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 ' '
MartinJohnson 0:404dae88af71 29 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x20, 0x00, // 0x20 '!'
MartinJohnson 0:404dae88af71 30 0x00, 0x50, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '"'
MartinJohnson 0:404dae88af71 31 0x00, 0x00, 0x50, 0xF8, 0x50, 0xF8, 0x50, 0x00, 0x00, // 0x20 '#'
MartinJohnson 0:404dae88af71 32 0x00, 0x20, 0x78, 0xA0, 0x70, 0x28, 0xF0, 0x20, 0x00, // 0x20 '$'
MartinJohnson 0:404dae88af71 33 0x00, 0xC8, 0xD0, 0x20, 0x20, 0x20, 0x58, 0x98, 0x00, // 0x20 '%'
MartinJohnson 0:404dae88af71 34 0x00, 0x20, 0x50, 0x20, 0x40, 0xA8, 0x98, 0x70, 0x00, // 0x20 '&'
MartinJohnson 0:404dae88af71 35 0x00, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '''
MartinJohnson 0:404dae88af71 36 0x00, 0x20, 0x40, 0x80, 0x80, 0x80, 0x40, 0x20, 0x00, // 0x20 '('
MartinJohnson 0:404dae88af71 37 0x00, 0x20, 0x10, 0x08, 0x08, 0x08, 0x10, 0x20, 0x00, // 0x20 ')'
MartinJohnson 0:404dae88af71 38 0x00, 0x00, 0xa8, 0x70, 0xf8, 0x70, 0xa8, 0x00, 0x00, // 0x20 '*'
MartinJohnson 0:404dae88af71 39 0x00, 0x00, 0x20, 0x20, 0xf8, 0x20, 0x20, 0x00, 0x00, // 0x20 '+'
MartinJohnson 0:404dae88af71 40 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x40, 0x00, // 0x20 ','
MartinJohnson 0:404dae88af71 41 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, // 0x20 '-'
MartinJohnson 0:404dae88af71 42 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, // 0x20 '.'
MartinJohnson 0:404dae88af71 43 0x00, 0x10, 0x10, 0x20, 0x20, 0x20, 0x40, 0x40, 0x00, // 0x20 '/'
MartinJohnson 0:404dae88af71 44 0x00, 0x70, 0x88, 0x88, 0xA8, 0x88, 0x88, 0x70, 0x00, // 0x20 '0'
MartinJohnson 0:404dae88af71 45 0x00, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, // 0x20 '1'
MartinJohnson 0:404dae88af71 46 0x00, 0x70, 0x88, 0x08, 0x70, 0x80, 0x80, 0xF8, 0x00, // 0x20 '2'
MartinJohnson 0:404dae88af71 47 0x00, 0x70, 0x88, 0x08, 0x30, 0x08, 0x88, 0x70, 0x00, // 0x20 '3'
MartinJohnson 0:404dae88af71 48 0x00, 0x10, 0x30, 0x50, 0x90, 0xF8, 0x10, 0x10, 0x00, // 0x20 '4'
MartinJohnson 0:404dae88af71 49 0x00, 0xf0, 0x80, 0x80, 0xf0, 0x08, 0x88, 0x70, 0x00, // 0x20 '5'
MartinJohnson 0:404dae88af71 50 0x00, 0x30, 0x40, 0x80, 0xB0, 0xC8, 0x88, 0x70, 0x00, // 0x20 '6'
MartinJohnson 0:404dae88af71 51 0x00, 0xF8, 0x08, 0x10, 0x20, 0x40, 0x80, 0x80, 0x00, // 0x20 '7'
MartinJohnson 0:404dae88af71 52 0x00, 0x70, 0x88, 0x88, 0x70, 0x88, 0x88, 0x70, 0x00, // 0x20 '8'
MartinJohnson 0:404dae88af71 53 0x00, 0x70, 0x88, 0x88, 0x78, 0x08, 0x88, 0x70, 0x00, // 0x20 '9'
MartinJohnson 0:404dae88af71 54 0x00, 0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x00, 0x00, // 0x20 ':'
MartinJohnson 0:404dae88af71 55 0x00, 0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x60, 0x00, // 0x20 ';'
MartinJohnson 0:404dae88af71 56 0x00, 0x10, 0x20, 0x40, 0x80, 0x40, 0x20, 0x10, 0x00, // 0x20 '<'
MartinJohnson 0:404dae88af71 57 0x00, 0x00, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x00, 0x00, // 0x20 '='
MartinJohnson 0:404dae88af71 58 0x00, 0x40, 0x20, 0x10, 0x08, 0x10, 0x20, 0x40, 0x00, // 0x20 '>'
MartinJohnson 0:404dae88af71 59 0x00, 0x70, 0x88, 0x08, 0x10, 0x20, 0x00, 0x20, 0x00, // 0x20 '?'
MartinJohnson 0:404dae88af71 60 0x00, 0x70, 0x88, 0xb8, 0xa8, 0xb8, 0x80, 0x78, 0x00, // 0x20 '@'
MartinJohnson 0:404dae88af71 61 0x00, 0x70, 0x88, 0x88, 0x88, 0xF8, 0x88, 0x88, 0x00, // 0x20 'A'
MartinJohnson 0:404dae88af71 62 0x00, 0xF0, 0x88, 0x88, 0xF0, 0x88, 0x88, 0xF0, 0x00, // 0x20 'B'
MartinJohnson 0:404dae88af71 63 0x00, 0x70, 0x88, 0x80, 0x80, 0x80, 0x88, 0x70, 0x00, // 0x20 'C'
MartinJohnson 0:404dae88af71 64 0x00, 0xF0, 0x88, 0x88, 0x88, 0x88, 0x88, 0xF0, 0x00, // 0x20 'D'
MartinJohnson 0:404dae88af71 65 0x00, 0xF8, 0x80, 0x80, 0xF0, 0x80, 0x80, 0xF8, 0x00, // 0x20 'E'
MartinJohnson 0:404dae88af71 66 0x00, 0xF8, 0x80, 0x80, 0xF0, 0x80, 0x80, 0x80, 0x00, // 0x20 'F'
MartinJohnson 0:404dae88af71 67 0x00, 0x70, 0x88, 0x80, 0xB8, 0x88, 0x88, 0x70, 0x00, // 0x20 'G'
MartinJohnson 0:404dae88af71 68 0x00, 0x88, 0x88, 0x88, 0xF8, 0x88, 0x88, 0x88, 0x00, // 0x20 'H'
MartinJohnson 0:404dae88af71 69 0x00, 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, // 0x20 'I'
MartinJohnson 0:404dae88af71 70 0x00, 0x08, 0x08, 0x08, 0x08, 0x88, 0x88, 0x70, 0x00, // 0x20 'J'
MartinJohnson 0:404dae88af71 71 0x00, 0x88, 0x90, 0xA0, 0xC0, 0xA0, 0x90, 0x88, 0x00, // 0x20 'K'
MartinJohnson 0:404dae88af71 72 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xF8, 0x00, // 0x20 'L'
MartinJohnson 0:404dae88af71 73 0x00, 0x88, 0xD8, 0xA8, 0x88, 0x88, 0x88, 0x88, 0x00, // 0x20 'M'
MartinJohnson 0:404dae88af71 74 0x00, 0x88, 0xC8, 0xA8, 0x98, 0x88, 0x88, 0x88, 0x00, // 0x20 'N'
MartinJohnson 0:404dae88af71 75 0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, // 0x20 'O'
MartinJohnson 0:404dae88af71 76 0x00, 0xf0, 0x88, 0x88, 0xf0, 0x80, 0x80, 0x80, 0x00, // 0x20 'P'
MartinJohnson 0:404dae88af71 77 0x00, 0x70, 0x88, 0x88, 0x88, 0xa8, 0x90, 0x68, 0x00, // 0x20 'Q'
MartinJohnson 0:404dae88af71 78 0x00, 0xf0, 0x88, 0x88, 0xf0, 0xa0, 0x90, 0x88, 0x00, // 0x20 'R'
MartinJohnson 0:404dae88af71 79 0x00, 0x70, 0x88, 0x80, 0x70, 0x08, 0x88, 0x70, 0x00, // 0x20 'S'
MartinJohnson 0:404dae88af71 80 0x00, 0xf8, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, // 0x20 'T'
MartinJohnson 0:404dae88af71 81 0x00, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, // 0x20 'U'
MartinJohnson 0:404dae88af71 82 0x00, 0x88, 0x88, 0x88, 0x88, 0x88, 0x50, 0x20, 0x00, // 0x20 'V'
MartinJohnson 0:404dae88af71 83 0x00, 0x88, 0x88, 0x88, 0x88, 0xa8, 0xa8, 0x70, 0x00, // 0x20 'W'
MartinJohnson 0:404dae88af71 84 0x00, 0x88, 0x88, 0x50, 0x20, 0x50, 0x88, 0x88, 0x00, // 0x20 'X'
MartinJohnson 0:404dae88af71 85 0x00, 0x88, 0x88, 0x88, 0x50, 0x20, 0x20, 0x20, 0x00, // 0x20 'Y'
MartinJohnson 0:404dae88af71 86 0x00, 0xf8, 0x08, 0x10, 0x20, 0x40, 0x80, 0xf8, 0x00, // 0x20 'Z'
MartinJohnson 0:404dae88af71 87 0x00, 0x70, 0x40, 0x40, 0x40, 0x40, 0x40, 0x70, 0x00, // 0x20 '['
MartinJohnson 0:404dae88af71 88 0x00, 0x40, 0x40, 0x20, 0x20, 0x20, 0x10, 0x10, 0x00, // 0x20 '\'
MartinJohnson 0:404dae88af71 89 0x00, 0x70, 0x10, 0x10, 0x10, 0x10, 0x10, 0x70, 0x00, // 0x20 ']'
MartinJohnson 0:404dae88af71 90 0x00, 0x20, 0x50, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '^'
MartinJohnson 0:404dae88af71 91 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, // 0x20 '_'
MartinJohnson 0:404dae88af71 92 0x00, 0x20, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '`'
MartinJohnson 0:404dae88af71 93 0x00, 0x00, 0x00, 0x70, 0x08, 0x78, 0x98, 0x68, 0x00, // 0x20 'a'
MartinJohnson 0:404dae88af71 94 0x00, 0x00, 0x80, 0x80, 0xF0, 0x88, 0x88, 0xF0, 0x00, // 0x20 'b'
MartinJohnson 0:404dae88af71 95 0x00, 0x00, 0x00, 0x78, 0x80, 0x80, 0x80, 0x78, 0x00, // 0x20 'c'
MartinJohnson 0:404dae88af71 96 0x00, 0x00, 0x08, 0x08, 0x78, 0x88, 0x88, 0x78, 0x00, // 0x20 'd'
MartinJohnson 0:404dae88af71 97 0x00, 0x00, 0x00, 0x70, 0x88, 0xF0, 0x80, 0x70, 0x00, // 0x20 'e'
MartinJohnson 0:404dae88af71 98 0x00, 0x30, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x00, // 0x20 'f'
MartinJohnson 0:404dae88af71 99 0x00, 0x00, 0x00, 0x78, 0x88, 0x78, 0x08, 0x70, 0x00, // 0x20 'g'
MartinJohnson 0:404dae88af71 100 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'h'
MartinJohnson 0:404dae88af71 101 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'i'
MartinJohnson 0:404dae88af71 102 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'j'
MartinJohnson 0:404dae88af71 103 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'k'
MartinJohnson 0:404dae88af71 104 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'l'
MartinJohnson 0:404dae88af71 105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'm'
MartinJohnson 0:404dae88af71 106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'n'
MartinJohnson 0:404dae88af71 107 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'o'
MartinJohnson 0:404dae88af71 108 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'p'
MartinJohnson 0:404dae88af71 109 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'q'
MartinJohnson 0:404dae88af71 110 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'r'
MartinJohnson 0:404dae88af71 111 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 's'
MartinJohnson 0:404dae88af71 112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 't'
MartinJohnson 0:404dae88af71 113 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'u'
MartinJohnson 0:404dae88af71 114 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'v'
MartinJohnson 0:404dae88af71 115 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'w'
MartinJohnson 0:404dae88af71 116 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'x'
MartinJohnson 0:404dae88af71 117 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'y'
MartinJohnson 0:404dae88af71 118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 'z'
MartinJohnson 0:404dae88af71 119 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '{'
MartinJohnson 0:404dae88af71 120 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '|'
MartinJohnson 0:404dae88af71 121 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '}'
MartinJohnson 0:404dae88af71 122 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 '~'
MartinJohnson 0:404dae88af71 123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20 ''
MartinJohnson 0:404dae88af71 124 };
MartinJohnson 0:404dae88af71 125