45 #include <util/delay.h> 46 #include <avr/pgmspace.h> 182 #if PROCESS_NEWLINE == TRUE 184 #if DISPLAY_RESOLUTION == HIGH_RES 185 #if DISPLAY_NUMBER_ROWS == 2 201 #if DISPLAY_NUMBER_ROWS == 2 230 #if USE_LCD_RW_PIN == TRUE 243 #if USE_LCD_RW_PIN == TRUE 260 #if AUTOWRAP_AROUND == TRUE 262 #if DISPLAY_RESOLUTION == HIGH_RES //5x11 Dots 263 #if DISPLAY_NUMBER_ROWS == 2 277 #if DISPLAY_NUMBER_ROWS == 2 327 #if USE_LCD_RW_PIN == TRUE 339 #if USE_LCD_RW_PIN == TRUE 389 #if DISPLAY_RESOLUTION == HIGH_RES //5x11 Dots 467 if (flash_mem ==
TRUE) {
469 c = pgm_read_byte(data);
473 c = pgm_read_byte(data);
478 while (*data !=
'\0') {
559 #if USE_LCD_RW_PIN == TRUE 569 #if USE_LCD_RW_PIN == TRUE 579 #if USE_LCD_RW_PIN == TRUE 589 #if USE_LCD_RW_PIN == TRUE 600 #if DISPLAY_RESOLUTION == HIGH_RES 621 #if DISPLAY_CURSOR == CURSOR_ON //Cursor On? 624 #if DISPLAY_CURSOR_BLINK == BLINK_ON //Blinking On? 635 #if USE_LCD_RW_PIN == TRUE 666 #if USE_LCD_RW_PIN == TRUE #define LCD_BL_SWITCH_OFF
switch off backlight
void lcd_blpin_init(void)
#define DISPLAY_INIT_WAIT_TIME02_MS
wait time after 2. init messages (function set 8 Bit) [ms]
#define DISPLAY_COMMANDTRANSFER_TIME_US
wait time after command transfer [us]
#define LCDBL_DDR
DDR Register of Controller Port for LCD Backlight.
#define LCD_BL_OFF
LCD backlight state "off".
uint8_t lcd_backlight_state
contains the current backlight state
#define DISPLAY_DATATRANSFER_TIME_US
wait time after data transfer [us]
#define SET_DDRAM_ADDRESS
set DDRAM Address (DB0...DB6 transport address)
#define DISPLAY_CURSORHOME_WAIT_TIME_MS
wait time after cursor home command [ms]
void lcd_send_data(unsigned char data)
#define TRUE
value for TRUE
#define DDRAM_OFFSET
address offset for 2. line (for 2-line-mode)
void lcd_send_command(unsigned char command)
#define DISPLAY_NUMBER_COLUMNS
number of display columns
#define DISPLAY_INIT_WAIT_TIME03_MS
wait time after 3. init messages (function set 8 Bit) [ms]
#define DISPLAY_ENABLE_TIME_US
width of enable pulse [us]
void lcd_send_string(const char *data, uint8_t flash_mem)
void lcd_cursor_home(void)
#define LCD_BL_ALTERNATE
alternate backlight
#define DISPLAY_NUMBER_ROWS
number of display rows (valid only for 5x8 dots!)
#define DISPLAY_INIT_WAIT_TIME04_MS
wait time after 4. init message (function set 4 Bit) [ms]
#define DISPLAY_INIT_WAIT_TIME01_MS
wait time after 1. init message (function set 8 Bit) [ms]
4 Bit Interface to LCD displays with up to 4 rows and a single Controller (e.g. ST7066U or HD44780)...
#define DISPLAY_ADDRESS_HOLD_TIME_US
address hold time (after enable pulse) [us]
#define CURSOR_HOME
move Cursor to Home position
#define LCD_BL_ON
LCD backlight state "on".
#define DISPLAY_CLEAR_WAIT_TIME_MS
wait time after clear command [ms]
uint8_t next_ddram_address
contains next ddram address
#define LCDBL_CTRL
Pin for Backlight.
void lcd_set_cursor(uint8_t column, uint8_t row)
#define DISPLAY_INIT_WAIT_TIME_MS
standard wait time after 4 Bit init message [ms]
#define CLEAR_DISPLAY
Clear Display and DDRAM.
#define LCD_BL_SWITCH_ON
switch on backlight
#define LCD_PORT
///////////////////////////////////////////////////////////////////////// port_definitions.h // // Version: 0.8 // Date: 01/09/2010 // Author: Michael Skutek (michael@skutek.de) // // Description: Port Settings (Definitions, Association) // // Platform: AVR ATmega (tested on ATmega16) // // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this program. If not, see // http://www.gnu.org/licenses/. //
void lcd_set_backlight(uint8_t control)
#define LCDBL_PORT
Controller Port for Backlight Pin.
#define DISPLAY_RESET_WAIT_TIME_MS
wait time after reset [ms]