Chargement du reste de cette comparaison.

config_644.h

Créé Le diff n'expire jamais
7 suppressions
521 lignes
2 ajouts
522 lignes
/* ************************************************************************
/* ************************************************************************
*
*
* ATmega 324/644/1284 specific global configuration, setup and settings
* ATmega 324/644/1284 specific global configuration, setup and settings
*
*
* (c) 2012-2020 by Markus Reschke
* (c) 2012-2020 by Markus Reschke
* based on code from Markus Frejek and Karl-Heinz Kübbeler
* based on code from Markus Frejek and Karl-Heinz Kbbeler
*
*
* ************************************************************************ */
* ************************************************************************ */




/* source management */
/* source management */
#define CONFIG_644_H
#define CONFIG_644_H






/* ************************************************************************
/* ************************************************************************
* display module
* display module
* ************************************************************************ */
* ************************************************************************ */




/*
/*
* display module / controller
* display module / controller
*
*
* Please uncomment the package matching your LCD/OLED module and adjust
* Please uncomment the package matching your LCD/OLED module and adjust
* settings. And comment out the default package if not used.
* settings. And comment out the default package if not used.
*
*
* To uncomment, remove the enclosing "#if 0" and "#endif" or put
* To uncomment, remove the enclosing "#if 0" and "#endif" or put
* a "//" in front of both. To comment out, remove the "//" in front
* a "//" in front of both. To comment out, remove the "//" in front
* of the "#if 0" and "#endif".
* of the "#if 0" and "#endif".
*
*
* Individual settings can be enabled by removing the leading "//", or
* Individual settings can be enabled by removing the leading "//", or
* disabled by placing a "//" in front of the setting.
* disabled by placing a "//" in front of the setting.
*/
*/




/*
/*
* HD44780
* HD44780
* - 4 bit parallel interface
* - 4 bit parallel interface
* - enable LCD_DB_STD when using port pins 0-3 for LCD_DB4/5/6/7
* - enable LCD_DB_STD when using port pins 0-3 for LCD_DB4/5/6/7
*/
*/


#if 0
#if 0
#define LCD_HD44780 /* display controller HD44780 */
#define LCD_HD44780 /* display controller HD44780 */
#define LCD_TEXT /* character display */
#define LCD_TEXT /* character display */
#define LCD_PAR_4 /* 4 bit parallel interface */
#define LCD_PAR_4 /* 4 bit parallel interface */
/* control and data lines */
/* control and data lines */
#define LCD_PORT PORTB /* port data register */
#define LCD_PORT PORTB /* port data register */
#define LCD_DDR DDRB /* port data direction register */
#define LCD_DDR DDRB /* port data direction register */
//#define LCD_DB_STD /* use standard pins 0-3 for DB4-7 */
//#define LCD_DB_STD /* use standard pins 0-3 for DB4-7 */
#define LCD_DB4 PB4 /* port pin used for DB4 */
#define LCD_DB4 PB4 /* port pin used for DB4 */
#define LCD_DB5 PB5 /* port pin used for DB5 */
#define LCD_DB5 PB5 /* port pin used for DB5 */
#define LCD_DB6 PB6 /* port pin used for DB6 */
#define LCD_DB6 PB6 /* port pin used for DB6 */
#define LCD_DB7 PB7 /* port pin used for DB7 */
#define LCD_DB7 PB7 /* port pin used for DB7 */
#define LCD_RS PB2 /* port pin used for RS */
#define LCD_RS PB2 /* port pin used for RS */
#define LCD_EN1 PB3 /* port pin used for E */
#define LCD_EN1 PB3 /* port pin used for E */
/* display settings */
/* display settings */
#define LCD_CHAR_X 16 /* characters per line */
#define LCD_CHAR_X 16 /* characters per line */
#define LCD_CHAR_Y 2 /* number of lines */
#define LCD_CHAR_Y 2 /* number of lines */
/* HD44780 has an internal 5x7 font */
/* HD44780 has an internal 5x7 font */
#define FONT_HD44780_INT /* International font (English) */
#define FONT_HD44780_INT /* International font (English) */
//#define FONT_HD44780_WIN1251 /* Cyrillic font (European) */
//#define FONT_HD44780_WIN1251 /* Cyrillic font (European) */
#endif
#endif






/*
/*
* HD44780 with PCF8574 based backpack
* HD44780 with PCF8574 based backpack
* - I2C interface using hardware I2C
* - I2C interface using hardware I2C
* - if you change LCD_DB4/5/6/7 comment out LCD_DB_STD!
* - if you change LCD_DB4/5/6/7 comment out LCD_DB_STD!
* - hardware I2C automatically selects SDA and SCL pins
* - hardware I2C automatically selects SDA and SCL pins
* - PCF8574T is 0x27, PCF8574AT is 0x3f
* - PCF8574T is 0x27, PCF8574AT is 0x3f
*/
*/


#if 0
#if 0
#define LCD_HD44780 /* display controller HD44780 */
#define LCD_HD44780 /* display controller HD44780 */
#define LCD_TEXT /* character display */
#define LCD_TEXT /* character display */
#define LCD_PCF8574 /* PCF8574 backpack */
#define LCD_PCF8574 /* PCF8574 backpack */
#define LCD_I2C_ADDR 0x27 /* PCF8574's I2C address */
#define LCD_I2C_ADDR 0x27 /* PCF8574's I2C address */
/* control and data lines */
/* control and data lines */
#define LCD_DB_STD /* use standard pins 4-7 for DB4-7 */
#define LCD_DB_STD /* use standard pins 4-7 for DB4-7 */
#define LCD_DB4 PCF8574_P4 /* port pin used for DB4 */
#define LCD_DB4 PCF8574_P4 /* port pin used for DB4 */
#define LCD_DB5 PCF8574_P5 /* port pin used for DB5 */
#define LCD_DB5 PCF8574_P5 /* port pin used for DB5 */
#define LCD_DB6 PCF8574_P6 /* port pin used for DB6 */
#define LCD_DB6 PCF8574_P6 /* port pin used for DB6 */
#define LCD_DB7 PCF8574_P7 /* port pin used for DB7 */
#define LCD_DB7 PCF8574_P7 /* port pin used for DB7 */
#define LCD_RS PCF8574_P0 /* port pin used for RS */
#define LCD_RS PCF8574_P0 /* port pin used for RS */
#define LCD_RW PCF8574_P1 /* port pin used for RW */
#define LCD_RW PCF8574_P1 /* port pin used for RW */
#define LCD_EN1 PCF8574_P2 /* port pin used for E */
#define LCD_EN1 PCF8574_P2 /* port pin used for E */
#define LCD_LED PCF8574_P3 /* port pin used for backlight */
#define LCD_LED PCF8574_P3 /* port pin used for backlight */
/* display settings */
/* display settings */
#define LCD_CHAR_X 16 /* characters per line */
#define LCD_CHAR_X 16 /* characters per line */
#define LCD_CHAR_Y 2 /* number of lines */
#define LCD_CHAR_Y 2 /* number of lines */
/* HD44780 has an internal 5x7 font */
/* HD44780 has an internal 5x7 font */
#define FONT_HD44780_INT /* International font (English) */
#define FONT_HD44780_INT /* International font (English) */
//#define FONT_HD44780_WIN1251 /* Cyrillic font (European) */
//#define FONT_HD44780_WIN1251 /* Cyrillic font (European) */
/* I2C bus */
/* I2C bus */
#define I2C_HARDWARE /* hardware I2C (MCU's TWI) */
#define I2C_HARDWARE /* hardware I2C (MCU's TWI) */
#define I2C_STANDARD_MODE /* 100kHz bus speed */
#define I2C_STANDARD_MODE /* 100kHz bus speed */
#endif
#endif