Adjusts LCD contrast
Toolkit:AVR Development System
Location:/bipom/devtools/WinAVR/minimaxavrc/Examples/Labs/Lab09
// Put Signature to EEPROM uint8_t ee_pwm __attribute__((section(".eeprom"))) = 0xA5; // ***************************************************************** int main (void) { unsigned char pwm =0; // Initialize the system uart0Init(19200); // Initialize uart1 // Send messages to terminal window uart0Printf("\n\rBIPOM MINI-MAX/AVR"); // LCD lcdInit(); // Initialize LCD module pwmInit(); // Adjust LCD contrast lcdControlCursor(CURSOR_OFF); // Disable LCD cursor lcdClearDisplay(); // Clear Display // Print test message to TOP line lcdSetTopLine(); lcdPrintf("BIPOM MINI-MAX/AVR"); for(;;) { for(pwm = 180;pwm<=250;) { PWM = pwm; // adjust LCD contrast lcdSetTopLine(); // Set Top Line lcdPrintf("Contrast : %02d",pwm); _delay_ms(3000); pwm += 10; } } }