You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

#ifndef TWI_LCD_CONF_H
#define TWI_LCD_CONF_H
// Uncomment this to use minimal mode (less functions, not as big)
// #define TWI_LCD_SMALL
#if defined(__AVR_ATmega168__) && !defined(TWI_LCD_SMALL)
// Uncomment this to enable use of a timeout after which the LCD turns off
#define TWI_LCD_USE_TIMEOUT
#ifdef TWI_LCD_USE_TIMEOUT
#define TWI_LCD_TIMEOUT 5000 /* In milliseconds (30 sec) */
#endif
// Uncomment this to enable control of the backlight on pin 3
#define TWI_LCD_CTRL
#ifdef TWI_LCD_CTRL
// Uncomment this to use PWM for backlight control.
//#define TWI_LCD_BL_PWM
#ifdef TWI_LCD_BL_PWM
// Set this to the default brightness for PWM controlled backlight
#define TWI_LCD_BL_LEVEL 255
#endif
#ifndef TWI_LCD_BL_PWM
// Uncomment this use the DS1803 digi-pot for display/backlight brightness
#define TWI_LCD_DPOT_CTRL
#ifdef TWI_LCD_DPOT_CTRL
// Set this to the default value of the backlight (0 to 254)
#define TWI_LCD_BL_LEVEL 254
// Set this to the default value of the display brightness (0 to 254)
#define TWI_LCD_DB_LEVEL 225
#endif
#endif
// End LCD Control
#endif
// End Small version
#endif
#endif