C++ file for display control
Dependencies: 4DGL mbed ConfigFile
Fork of 4DGLtest by
Diff: display.cpp
- Revision:
- 10:5706b75d40fa
- Parent:
- 7:779c5b8d3b14
- Child:
- 11:a5b0d98794c0
--- a/display.cpp Fri Jul 11 11:08:02 2014 +0000 +++ b/display.cpp Wed Jul 16 08:05:54 2014 +0000 @@ -6,6 +6,9 @@ #include <string> using namespace std; +DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video +DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch + /* ===================================================== SGC (Serial Graphics Controller) PLATFORM OUTPUT FILE @@ -297,6 +300,18 @@ return ( nPixel ) ; } +void VGA_SIGNAL( int Source, int On_Off) +{ + VGA_SOURCE = Source; + VGA_SELECT = On_Off; +} + +void CDU_InitDisplay() +{ + display.baudrate( 9600 ); //init uVGAIII card + VGA_SIGNAL( VGA_INT, VGA_ON ); //select INTERNTAL video and set VGA switch ON +} + void CDU_StartScreen() { string cTitle1="ENGRAVITY";