Dependencies:   mbed

main.c

Committer:
Ivop
Date:
2011-07-03
Revision:
0:043bbfc55ea1

File content as of revision 0:043bbfc55ea1:

#include "vga640x400/vga640x400.h"

extern unsigned char font_lin[256*16];

int main(int argc, char **argv) {
    font = font_lin;

    // xor 1 to compensate for character order (10325476 et cetera)
    // moved to userspace instead of rendering loop for obvious reasons
    for (int i=0; i<2000; i++)
        text_buffer[i^1] = i & 0xff;

    init_vga();
    
    while(1);
}