From 6da4ec44043bc0a2c5cd0b9f54b86f53f260bd94 Mon Sep 17 00:00:00 2001 From: Khoa Ton Date: Fri, 10 Apr 2020 00:42:41 -0700 Subject: [PATCH] Revert "Better support for LCD 2004A 20x4 #8062" This reverts commit f1ed412acb74b1e34f2b16afb3cd2b3bbc0e0e95. Revert to remove unwanted commit, bringing back to match upstream HEAD --- .travis.yml | 2 -- tasmota/my_user_config.h | 2 -- tasmota/settings.ino | 9 --------- 3 files changed, 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4e3eeed43ac..5e5885f65f25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,5 +44,3 @@ script: - platformio run -e $ENV before_deploy: - for file in .pioenvs/*/firmware.bin; do cp $file ${file%/*}.bin; done - - \ No newline at end of file diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 2b1ef93789b2..70504293c728 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -502,8 +502,6 @@ // #define USE_DISPLAY // Add I2C Display Support (+2k code) #define USE_DISPLAY_MODES1TO5 // Enable display mode 1 to 5 in addition to mode 0 #define USE_DISPLAY_LCD // [DisplayModel 1] [I2cDriver3] Enable Lcd display (I2C addresses 0x27 and 0x3F) (+6k code) - #define USE_DISPLAY_LCD_ROWS 4 // Rows of display - #define USE_DISPLAY_LCD_COLS 20 // Columns of display #define USE_DISPLAY_SSD1306 // [DisplayModel 2] [I2cDriver4] Enable SSD1306 Oled 128x64 display (I2C addresses 0x3C and 0x3D) (+16k code) #define USE_DISPLAY_MATRIX // [DisplayModel 3] [I2cDriver5] Enable 8x8 Matrix display (I2C adresseses see below) (+11k code) #define MTX_ADDRESS1 0x71 // [DisplayAddress1] I2C address of first 8x8 matrix module diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 7cd6bcc58bf0..3bb58ff434f2 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -1087,18 +1087,9 @@ void SettingsDefaultSet2(void) // Settings.display_model = 0; Settings.display_mode = 1; Settings.display_refresh = 2; - #ifdef USE_DISPLAY_LCD_ROWS - Settings.display_rows = USE_DISPLAY_LCD_ROWS; - #else Settings.display_rows = 2; - #endif - #ifdef USE_DISPLAY_LCD_COLS - Settings.display_cols[0] = USE_DISPLAY_LCD_COLS; - Settings.display_cols[1] = USE_DISPLAY_LCD_COLS/2; - #else Settings.display_cols[0] = 16; Settings.display_cols[1] = 8; - #endif Settings.display_dimmer = 1; Settings.display_size = 1; Settings.display_font = 1;