Version 6 of dooropener
Fork of TextLCD by
Revision 42:b6b021d760d7, committed 2018-04-16
- Comitter:
- Martin1000
- Date:
- Mon Apr 16 12:07:16 2018 +0000
- Parent:
- 37:ce348c002929
- Commit message:
- Version 6 of door opener
Changed in this revision
TextLCD_Config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r ce348c002929 -r b6b021d760d7 TextLCD_Config.h --- a/TextLCD_Config.h Sun Mar 29 13:08:03 2015 +0000 +++ b/TextLCD_Config.h Mon Apr 16 12:07:16 2018 +0000 @@ -65,6 +65,13 @@ //Note: LCD RW pin must be connected to GND // E2 is used for LCD40x4 (second controller) // BL may be used to control backlight + + + + + + + #define D_LCD_PIN_D4 0 #define D_LCD_PIN_D5 1 #define D_LCD_PIN_D6 2 @@ -233,6 +240,27 @@ //Bitpattern Defines for I2C PCF8574/PCF8574A, MCP23008 and SPI 74595 Bus expanders //Don't change! // + +/* +/ Achtung: geänderter Header für sunfounder 20 * 4 Display! + +#define LCD_BUS_I2C_D4 (1 << 4) +#define LCD_BUS_I2C_D5 (1 << 5) +#define LCD_BUS_I2C_D6 (1 << 6) +#define LCD_BUS_I2C_D7 (1 << 7) +#define LCD_BUS_I2C_RS (1 << 0) +#define LCD_BUS_I2C_E (1 << 2) +#define LCD_BUS_I2C_E2 (1 << 1) +#define LCD_BUS_I2C_BL (1 << 3) + +#define LCD_BUS_I2C_RW (1 << 1) + +*/ + + + +/* Original + #define D_LCD_D4 (1<<D_LCD_PIN_D4) #define D_LCD_D5 (1<<D_LCD_PIN_D5) #define D_LCD_D6 (1<<D_LCD_PIN_D6) @@ -241,7 +269,21 @@ #define D_LCD_E (1<<D_LCD_PIN_E) #define D_LCD_E2 (1<<D_LCD_PIN_E2) #define D_LCD_BL (1<<D_LCD_PIN_BL) -//#define D_LCD_RW (1<<D_LCD_PIN_RW) + +*/ +// Kopie + +#define D_LCD_D4 (1<< 4) +#define D_LCD_D5 (1<< 5) +#define D_LCD_D6 (1<< 6) +#define D_LCD_D7 (1<< 7) +#define D_LCD_RS (1<< 0) +#define D_LCD_E (1<< 2) +#define D_LCD_E2 (1<< 1) +#define D_LCD_BL (1<< 3) + + +#define D_LCD_RW (1<< 1) #define D_LCD_BUS_MSK (D_LCD_D4 | D_LCD_D5 | D_LCD_D6 | D_LCD_D7) #define D_LCD_BUS_DEF 0x00