Download uC/GUI user manual
Transcript
51
#include "SIM.h"
void SIM_X_Init() {
SIM_SetLCDPos(0,0);
}
// Define the position of the LCD in the bitmap
The table below lists the available device-simulation-related routines in alphabetical
order within their respective categories. Detailed descriptions of the routines follow:
Routine
Explanation
SIM_GUI_SetLCDColorBlack()
Set the color to be used as black (color monochrome
displays).
SIM_GUI_SetLCDColorWhite()
Set the color to be used as white (color monochrome
displays).
SIM_GUI_SetLCDPos()
Set the position for the simulated LCD within the target
device bitmap.
SIM_GUI_SetMag()
Set magnification factors for X and/or Y axis.
SIM_GUI_SetTransColor()
Set the color to be used for transparent areas (default:
0xFF0000).
SIM_GUI_SetLCDColorBlack(), SIM_GUI_SetLCDColorWhite()
Description
Set the colors to be used as black or white, respectively, on color monochrome displays.
Prototypes
int SIM_GUI_SetLCDColorBlack(int DisplayIndex, int Color);
int SIM_GUI_SetLCDColorWhite(int DisplayIndex, int Color);
Parameter
DisplayIndex
Color
Meaning
Reserved for future use; must be 0.
RGB value of the color.
Additional information
These functions can be used to simulate the true background color of your display.
The default color values are black and white, or 0x000000 and 0xFFFFFF.
Example using default settings
void SIM_X_Init() {
SIM_GUI_SetLCDPos(14,84);
// Define the position of the LCD in the bitmap
SIM_GUI_SetLCDColorBlack (0, 0x000000); // Define the color used as black
SIM_GUI_SetLCDColorWhite (0, 0xFFFFFF); // Define the color used as white
(used for colored monochrome displays)
}
User's & reference manual for μC/GUI
© 2002-2005 Micrium Technologies Corporation
Related documents