C++ file for display control

Dependencies:   4DGL mbed ConfigFile

Fork of 4DGLtest by Stephane ROCHON

display.h

Committer:
WillemBraat
Date:
2014-07-16
Revision:
11:a5b0d98794c0
Parent:
10:5706b75d40fa

File content as of revision 11:a5b0d98794c0:


//MBED CONTROL LINES
//VGA selector lines
#define VGA_INT 0   //use internal VGA screen
#define VGA_EXT 1   //loop through external VGA screen from DB9 connector to display
#define VGA_ON  0   //wwitch VGA on
#define VGA_OFF 1   //switch VGA off

//LINE and pixel definitions
#define LINE1 0
#define LINE2 34
#define LINE3 68
#define LINE4 102
#define LINE5 136
#define LINE6 170
#define LINE7 204
#define LINE8 238
#define LINE9 272
#define LINE10 306
#define LINE11 340
#define LINE12 374
#define LINE13 408
#define LINE14 442

//Borders of display
#define XMIN 0
#define XMAX 576
#define YMIN 0
#define YMAX 476

//Width of characters
#define SMALLCHAR 12
#define LARGECHAR 24