/* Set function for the contrast level of the LCD.  */
void halLcdSetContrast(unsigned char ContrastLevel)
/* Set function for the contrast level of the LCD.  */
void halLcdSetContrast(unsigned char ContrastLevel)
{
  if (ContrastLevel > 127) ContrastLevel = 127;
  if (ContrastLevel < 70) ContrastLevel = 70;
  LcdInitMacro[ 0x04 * 6 + 5 ] = ContrastLevel;
  halLcdSendCommand(&LcdInitMacro[ 0x04 * 6 ]);
}