add UTF-8 recode support, Cyrilic rus/ukr tables
Fork of TextLCD by
TextLCD Library UTF-8 recode support, Cyrilic rus/ukr tables
Diff: TextLCD_Config.h
- Revision:
- 41:51a77c5a45b6
- Parent:
- 40:d3496c3ea301
- Child:
- 42:041673da5e53
diff -r d3496c3ea301 -r 51a77c5a45b6 TextLCD_Config.h --- a/TextLCD_Config.h Wed May 20 18:46:51 2015 +0000 +++ b/TextLCD_Config.h Sun Oct 11 13:37:14 2015 +0000 @@ -32,37 +32,39 @@ //Select hardware interface options to reduce memory footprint (multiple options allowed) #define LCD_I2C 1 /* I2C Expander PCF8574/MCP23008 */ -#define LCD_SPI 1 /* SPI Expander SN74595 */ -#define LCD_I2C_N 1 /* Native I2C bus */ -#define LCD_SPI_N 1 /* Native SPI bus */ -#define LCD_SPI_N_3_8 1 /* Native SPI bus */ -#define LCD_SPI_N_3_9 1 /* Native SPI bus */ -#define LCD_SPI_N_3_10 1 /* Native SPI bus */ -#define LCD_SPI_N_3_16 1 /* Native SPI bus */ -#define LCD_SPI_N_3_24 1 /* Native SPI bus */ +#define LCD_SPI 0 /* SPI Expander SN74595 */ +#define LCD_I2C_N 0 /* Native I2C bus */ +#define LCD_SPI_N 0 /* Native SPI bus */ +#define LCD_SPI_N_3_8 0 /* Native SPI bus */ +#define LCD_SPI_N_3_9 0 /* Native SPI bus */ +#define LCD_SPI_N_3_10 0 /* Native SPI bus */ +#define LCD_SPI_N_3_16 0 /* Native SPI bus */ +#define LCD_SPI_N_3_24 0 /* Native SPI bus */ //Select options to reduce memory footprint (multiple options allowed) #define LCD_UDC 1 /* Enable predefined UDC example*/ #define LCD_PRINTF 1 /* Enable Stream implementation */ -#define LCD_ICON 1 /* Enable Icon implementation -2.0K codesize*/ -#define LCD_ORIENT 1 /* Enable Orientation switch implementation -0.9K codesize*/ -#define LCD_BIGFONT 1 /* Enable Big Font implementation -0.6K codesize */ -#define LCD_INVERT 1 /* Enable display Invert implementation -0.5K codesize*/ +#define LCD_ICON 0 /* Enable Icon implementation -2.0K codesize*/ +#define LCD_ORIENT 0 /* Enable Orientation switch implementation -0.9K codesize*/ +#define LCD_BIGFONT 0 /* Enable Big Font implementation -0.6K codesize */ +#define LCD_INVERT 0 /* Enable display Invert implementation -0.5K codesize*/ #define LCD_POWER 1 /* Enable Power control implementation -0.1K codesize*/ #define LCD_BLINK 1 /* Enable UDC and Icon Blink control implementation -0.8K codesize*/ +#define UTF8_SUPP 0 /* Enable UTF-8 Support and cyrilic tables -0.128K codesize*/ //Select option to activate default fonttable or alternatively use conversion for specific controller versions (eg PCF2116C, PCF2119R) -#define LCD_DEF_FONT 1 +#define LCD_DEF_FONT 0 +//#define LCD_DEF_FONT 2 //Cyrilic //Pin Defines for I2C PCF8574/PCF8574A or MCP23008 and SPI 74595 bus expander interfaces //Different commercially available LCD portexpanders use different wiring conventions. //LCD and serial portexpanders should be wired according to the tables below. // //Select Serial Port Expander Hardware module (one option only) -#define DEFAULT 1 +#define DEFAULT 0 #define ADAFRUIT 0 #define DFROBOT 0 -#define LCM1602 0 +#define LCM1602 1 #define YWROBOT 0 #define GYLCD 0 #define MJKDZ 0 @@ -91,6 +93,7 @@ #define LCD_BUS_I2C_RW (1 << 6) + //SPI bus expander (74595) interface, same as I2C #define LCD_BUS_SPI_D4 LCD_BUS_I2C_D4 #define LCD_BUS_SPI_D5 LCD_BUS_I2C_D5