Project with LCD and DS1820.
Fork of TextLCD by
Revision 42:c40b6f0710b9, committed 2017-03-19
- Comitter:
- wupinxian
- Date:
- Sun Mar 19 16:02:52 2017 +0000
- Parent:
- 37:ce348c002929
- Commit message:
- Project with LCD and DS1820.
Changed in this revision
TextLCD_Config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r ce348c002929 -r c40b6f0710b9 TextLCD_Config.h --- a/TextLCD_Config.h Sun Mar 29 13:08:03 2015 +0000 +++ b/TextLCD_Config.h Sun Mar 19 16:02:52 2017 +0000 @@ -50,9 +50,9 @@ //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 DFROBOT 1 #define YWROBOT 0 #define GYLCD 0 #define SYDZ 0 @@ -93,20 +93,20 @@ //Note: LCD RW pin must be kept LOW // E2 is not available on this hardware and so it does not support LCD40x4 (second controller) // BL is used to control backlight -#define D_LCD_PIN_0 0 -#define D_LCD_PIN_RS 1 +#define D_LCD_PIN_0 5 +#define D_LCD_PIN_RS 6 #define D_LCD_PIN_E 2 -#define D_LCD_PIN_D4 3 -#define D_LCD_PIN_D5 4 -#define D_LCD_PIN_D6 5 -#define D_LCD_PIN_D7 6 +#define D_LCD_PIN_D4 0 +#define D_LCD_PIN_D5 1 +#define D_LCD_PIN_D6 2 +#define D_LCD_PIN_D7 3 #define D_LCD_PIN_BL 7 #define D_LCD_PIN_E2 D_LCD_PIN_0 //Force I2C portexpander type -#define PCF8574 0 -#define MCP23008 1 +#define PCF8574 1 +#define MCP23008 0 //Inverted Backlight control #define BACKLIGHT_INV 0