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:
Wed Apr 03 22:05:56 2019 +0000
Revision:
17:833f1b69e11d
Parent:
16:915db2280bc4
update library

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 3:93e488fbb8a2 23 ***************************************************************************/
MartinJohnson 3:93e488fbb8a2 24 #include "gdptypes.h"
MartinJohnson 0:404dae88af71 25
MartinJohnson 16:915db2280bc4 26 const unsigned char gdiSystemFont[] = {
MartinJohnson 14:3035b3271395 27 0x08,0x08,0x08,0x00,0x00,0x00,0x00,0x00, // columns, rows, num_bytes_per_char
MartinJohnson 14:3035b3271395 28 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // space 0x20
MartinJohnson 14:3035b3271395 29 0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00, // !
MartinJohnson 14:3035b3271395 30 0x50,0x50,0x50,0x00,0x00,0x00,0x00,0x00, // "
MartinJohnson 14:3035b3271395 31 0x50,0x50,0xF8,0x50,0xF8,0x50,0x50,0x00, // #
MartinJohnson 14:3035b3271395 32 0x20,0x78,0xA0,0x70,0x28,0xF0,0x20,0x00, // $
MartinJohnson 14:3035b3271395 33 0xC0,0xC8,0x10,0x20,0x40,0x98,0x18,0x00, // %
MartinJohnson 14:3035b3271395 34 0x40,0xA0,0xA0,0x40,0xA8,0x90,0x68,0x00, // &
MartinJohnson 14:3035b3271395 35 0x30,0x30,0x20,0x40,0x00,0x00,0x00,0x00, // '
MartinJohnson 14:3035b3271395 36 0x10,0x20,0x40,0x40,0x40,0x20,0x10,0x00, // (
MartinJohnson 14:3035b3271395 37 0x40,0x20,0x10,0x10,0x10,0x20,0x40,0x00, // )
MartinJohnson 14:3035b3271395 38 0x00,0x20,0xA8,0x70,0x70,0xA8,0x20,0x00, // *
MartinJohnson 14:3035b3271395 39 0x00,0x20,0x20,0xF8,0x20,0x20,0x00,0x00, // +
MartinJohnson 14:3035b3271395 40 0x00,0x00,0x00,0x00,0x30,0x30,0x20,0x40, // ,
MartinJohnson 14:3035b3271395 41 0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00, // -
MartinJohnson 14:3035b3271395 42 0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00, // .
MartinJohnson 14:3035b3271395 43 0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00, // / (forward slash)
MartinJohnson 14:3035b3271395 44 0x70,0x88,0x88,0xA8,0x88,0x88,0x70,0x00, // 0 0x30
MartinJohnson 14:3035b3271395 45 0x20,0x60,0x20,0x20,0x20,0x20,0x70,0x00, // 1
MartinJohnson 14:3035b3271395 46 0x70,0x88,0x08,0x70,0x80,0x80,0xF8,0x00, // 2
MartinJohnson 14:3035b3271395 47 0xF8,0x08,0x10,0x30,0x08,0x88,0x70,0x00, // 3
MartinJohnson 14:3035b3271395 48 0x10,0x30,0x50,0x90,0xF8,0x10,0x10,0x00, // 4
MartinJohnson 14:3035b3271395 49 0xF8,0x80,0xF0,0x08,0x08,0x88,0x70,0x00, // 5
MartinJohnson 14:3035b3271395 50 0x38,0x40,0x80,0xF0,0x88,0x88,0x70,0x00, // 6
MartinJohnson 14:3035b3271395 51 0xF8,0x08,0x08,0x10,0x20,0x40,0x80,0x00, // 7
MartinJohnson 14:3035b3271395 52 0x70,0x88,0x88,0x70,0x88,0x88,0x70,0x00, // 8
MartinJohnson 14:3035b3271395 53 0x70,0x88,0x88,0x78,0x08,0x10,0xE0,0x00, // 9
MartinJohnson 14:3035b3271395 54 0x00,0x00,0x20,0x00,0x20,0x00,0x00,0x00, // :
MartinJohnson 14:3035b3271395 55 0x00,0x00,0x20,0x00,0x20,0x20,0x40,0x00, // ;
MartinJohnson 14:3035b3271395 56 0x08,0x10,0x20,0x40,0x20,0x10,0x08,0x00, // <
MartinJohnson 14:3035b3271395 57 0x00,0x00,0xF8,0x00,0xF8,0x00,0x00,0x00, // =
MartinJohnson 14:3035b3271395 58 0x40,0x20,0x10,0x08,0x10,0x20,0x40,0x00, // >
MartinJohnson 14:3035b3271395 59 0x70,0x88,0x08,0x30,0x20,0x00,0x20,0x00, // ?
MartinJohnson 14:3035b3271395 60 0x70,0x88,0xA8,0xB8,0xB0,0x80,0x78,0x00, // @ 0x40
MartinJohnson 14:3035b3271395 61 0x20,0x50,0x88,0x88,0xF8,0x88,0x88,0x00, // A
MartinJohnson 14:3035b3271395 62 0xF0,0x88,0x88,0xF0,0x88,0x88,0xF0,0x00, // B
MartinJohnson 14:3035b3271395 63 0x70,0x88,0x80,0x80,0x80,0x88,0x70,0x00, // C
MartinJohnson 14:3035b3271395 64 0xF0,0x88,0x88,0x88,0x88,0x88,0xF0,0x00, // D
MartinJohnson 14:3035b3271395 65 0xF8,0x80,0x80,0xF0,0x80,0x80,0xF8,0x00, // E
MartinJohnson 14:3035b3271395 66 0xF8,0x80,0x80,0xF0,0x80,0x80,0x80,0x00, // F
MartinJohnson 14:3035b3271395 67 0x78,0x88,0x80,0x80,0x98,0x88,0x78,0x00, // G
MartinJohnson 14:3035b3271395 68 0x88,0x88,0x88,0xF8,0x88,0x88,0x88,0x00, // H
MartinJohnson 14:3035b3271395 69 0x70,0x20,0x20,0x20,0x20,0x20,0x70,0x00, // I
MartinJohnson 14:3035b3271395 70 0x38,0x10,0x10,0x10,0x10,0x90,0x60,0x00, // J
MartinJohnson 14:3035b3271395 71 0x88,0x90,0xA0,0xC0,0xA0,0x90,0x88,0x00, // K
MartinJohnson 14:3035b3271395 72 0x80,0x80,0x80,0x80,0x80,0x80,0xF8,0x00, // L
MartinJohnson 14:3035b3271395 73 0x88,0xD8,0xA8,0xA8,0xA8,0x88,0x88,0x00, // M
MartinJohnson 14:3035b3271395 74 0x88,0x88,0xC8,0xA8,0x98,0x88,0x88,0x00, // N
MartinJohnson 14:3035b3271395 75 0x70,0x88,0x88,0x88,0x88,0x88,0x70,0x00, // O
MartinJohnson 14:3035b3271395 76 0xF0,0x88,0x88,0xF0,0x80,0x80,0x80,0x00, // P 0x50
MartinJohnson 14:3035b3271395 77 0x70,0x88,0x88,0x88,0xA8,0x90,0x68,0x00, // Q
MartinJohnson 14:3035b3271395 78 0xF0,0x88,0x88,0xF0,0xA0,0x90,0x88,0x00, // R
MartinJohnson 14:3035b3271395 79 0x70,0x88,0x80,0x70,0x08,0x88,0x70,0x00, // S
MartinJohnson 14:3035b3271395 80 0xF8,0xA8,0x20,0x20,0x20,0x20,0x20,0x00, // T
MartinJohnson 14:3035b3271395 81 0x88,0x88,0x88,0x88,0x88,0x88,0x70,0x00, // U
MartinJohnson 14:3035b3271395 82 0x88,0x88,0x88,0x88,0x88,0x50,0x20,0x00, // V
MartinJohnson 14:3035b3271395 83 0x88,0x88,0x88,0xA8,0xA8,0xA8,0x50,0x00, // W
MartinJohnson 14:3035b3271395 84 0x88,0x88,0x50,0x20,0x50,0x88,0x88,0x00, // X
MartinJohnson 14:3035b3271395 85 0x88,0x88,0x50,0x20,0x20,0x20,0x20,0x00, // Y
MartinJohnson 14:3035b3271395 86 0xF8,0x08,0x10,0x70,0x40,0x80,0xF8,0x00, // Z
MartinJohnson 14:3035b3271395 87 0x78,0x40,0x40,0x40,0x40,0x40,0x78,0x00, // [
MartinJohnson 14:3035b3271395 88 0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00, // \ (back slash)
MartinJohnson 14:3035b3271395 89 0x78,0x08,0x08,0x08,0x08,0x08,0x78,0x00, // ]
MartinJohnson 14:3035b3271395 90 0x20,0x50,0x88,0x00,0x00,0x00,0x00,0x00, // ^
MartinJohnson 14:3035b3271395 91 0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00, // _
MartinJohnson 14:3035b3271395 92 0x60,0x60,0x20,0x10,0x00,0x00,0x00,0x00, // ` 0x60
MartinJohnson 14:3035b3271395 93 0x00,0x00,0x60,0x10,0x70,0x90,0x78,0x00, // a
MartinJohnson 14:3035b3271395 94 0x80,0x80,0xB0,0xC8,0x88,0xC8,0xB0,0x00, // b
MartinJohnson 14:3035b3271395 95 0x00,0x00,0x70,0x88,0x80,0x88,0x70,0x00, // c
MartinJohnson 14:3035b3271395 96 0x08,0x08,0x68,0x98,0x88,0x98,0x68,0x00, // d
MartinJohnson 14:3035b3271395 97 0x00,0x00,0x70,0x88,0xF8,0x80,0x70,0x00, // e
MartinJohnson 14:3035b3271395 98 0x10,0x28,0x20,0x70,0x20,0x20,0x20,0x00, // f
MartinJohnson 14:3035b3271395 99 0x00,0x00,0x70,0x98,0x98,0x68,0x08,0x70, // g
MartinJohnson 14:3035b3271395 100 0x80,0x80,0xB0,0xC8,0x88,0x88,0x88,0x00, // h
MartinJohnson 14:3035b3271395 101 0x20,0x00,0x60,0x20,0x20,0x20,0x70,0x00, // i
MartinJohnson 14:3035b3271395 102 0x10,0x00,0x10,0x10,0x10,0x90,0x60,0x00, // j
MartinJohnson 14:3035b3271395 103 0x80,0x80,0x90,0xA0,0xC0,0xA0,0x90,0x00, // k
MartinJohnson 14:3035b3271395 104 0x60,0x20,0x20,0x20,0x20,0x20,0x70,0x00, // l
MartinJohnson 14:3035b3271395 105 0x00,0x00,0xD0,0xA8,0xA8,0xA8,0xA8,0x00, // m
MartinJohnson 14:3035b3271395 106 0x00,0x00,0xB0,0xC8,0x88,0x88,0x88,0x00, // n
MartinJohnson 14:3035b3271395 107 0x00,0x00,0x70,0x88,0x88,0x88,0x70,0x00, // o
MartinJohnson 14:3035b3271395 108 0x00,0x00,0xB0,0xC8,0xC8,0xB0,0x80,0x80, // p 0x70
MartinJohnson 14:3035b3271395 109 0x00,0x00,0x68,0x98,0x98,0x68,0x08,0x08, // q
MartinJohnson 14:3035b3271395 110 0x00,0x00,0xB0,0xC8,0x80,0x80,0x80,0x00, // r
MartinJohnson 14:3035b3271395 111 0x00,0x00,0x78,0x80,0x70,0x08,0xF0,0x00, // s
MartinJohnson 14:3035b3271395 112 0x20,0x20,0xF8,0x20,0x20,0x28,0x10,0x00, // t
MartinJohnson 14:3035b3271395 113 0x00,0x00,0x88,0x88,0x88,0x98,0x68,0x00, // u
MartinJohnson 14:3035b3271395 114 0x00,0x00,0x88,0x88,0x88,0x50,0x20,0x00, // v
MartinJohnson 14:3035b3271395 115 0x00,0x00,0x88,0x88,0xA8,0xA8,0x50,0x00, // w
MartinJohnson 14:3035b3271395 116 0x00,0x00,0x88,0x50,0x20,0x50,0x88,0x00, // x
MartinJohnson 14:3035b3271395 117 0x00,0x00,0x88,0x88,0x78,0x08,0x88,0x70, // y
MartinJohnson 14:3035b3271395 118 0x00,0x00,0xF8,0x10,0x20,0x40,0xF8,0x00, // z
MartinJohnson 14:3035b3271395 119 0x10,0x20,0x20,0x40,0x20,0x20,0x10,0x00, // {
MartinJohnson 14:3035b3271395 120 0x20,0x20,0x20,0x00,0x20,0x20,0x20,0x00, // |
MartinJohnson 14:3035b3271395 121 0x40,0x20,0x20,0x10,0x20,0x20,0x40,0x00, // }
MartinJohnson 14:3035b3271395 122 0x40,0xA8,0x10,0x00,0x00,0x00,0x00,0x00, // ~
MartinJohnson 14:3035b3271395 123 0x70,0xD8,0xD8,0x70,0x00,0x00,0x00,0x00 // DEL
MartinJohnson 14:3035b3271395 124 };
MartinJohnson 14:3035b3271395 125