diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 325d65f23..180426e9d 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -77,6 +77,7 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Add command ``DevGroupSend`` to send an update to a Device Group (#8093) - Add support for unreachable (unplugged) Zigbee devices in Philips Hue emulation and Alexa - Add support for 64x48 SSD1306 OLED (#6740) +- Add support for Seven Segment display using HT16K33 (#8116) - Add support for up to four MQTT GroupTopics (#8014) - Add support for longer template names - Add support for an iAQ sensor (#8107) diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 3dacb80e7..a291fc757 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -22,6 +22,7 @@ - Add quick wifi reconnect using saved AP parameters when ``SetOption56 0`` (#3189) - Add more accuracy to GPS NTP server (#8088) - Add support for an iAQ sensor (#8107) +- Add support for Seven Segment display using HT16K33 (#8116) ### 8.2.0.2 20200328 diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 7b094d534..2d2fd421c 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -545,8 +545,9 @@ void GetFeatures(void) #ifdef USE_IAQ feature6 |= 0x00000010; // xsns_66_iAQ.ino #endif - -// feature6 |= 0x00000020; +#ifdef USE_DISPLAY_SEVENSEG + feature6 |= 0x00000020; // xdsp_11_sevenseg.ino +#endif // feature6 |= 0x00000040; // feature6 |= 0x00000080; diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index d8d2bfde0..7cd86c75e 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -262,6 +262,7 @@ #define USE_DISPLAY_LCD // [DisplayModel 1] Enable Lcd display (I2C addresses 0x27 and 0x3F) (+6k code) #define USE_DISPLAY_SSD1306 // [DisplayModel 2] Enable SSD1306 Oled 128x64 display (I2C addresses 0x3C and 0x3D) (+16k code) #define USE_DISPLAY_MATRIX // [DisplayModel 3] Enable 8x8 Matrix display (I2C adresseses see below) (+11k code) + #define USE_DISPLAY_SEVENSEG // [DisplayModel 11] [I2cDriver47] Enable sevenseg display (I2C addresses 0x70 - 0x77) (<+11k code) #define USE_DISPLAY_SH1106 // [DisplayModel 7] Enable SH1106 Oled 128x64 display (I2C addresses 0x3C and 0x3D) #define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC) diff --git a/tasmota/xdsp_11_sevenseg.ino b/tasmota/xdsp_11_sevenseg.ino index 2e0a5b11e..80056aa6e 100644 --- a/tasmota/xdsp_11_sevenseg.ino +++ b/tasmota/xdsp_11_sevenseg.ino @@ -189,7 +189,7 @@ void SevensegDrawStringAt(uint16_t x, uint16_t y, char *str, uint16_t color, uin #ifdef USE_DISPLAY_MODES1TO5 void SevensegTime(boolean time_24) { - + uint hours = RtcTime.hour; uint minutes = RtcTime.minute; uint second = RtcTime.second; @@ -301,6 +301,6 @@ bool Xdsp11(uint8_t function) return result; } -#endif // USE_DISPLAY_MATRIX +#endif // USE_DISPLAY_SEVENSEG #endif // USE_DISPLAY #endif // USE_I2C diff --git a/tools/decode-status.py b/tools/decode-status.py index d1d361d29..73309557d 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -93,7 +93,7 @@ a_setoption = [[ "IR Unknown threshold", "CSE7766 invalid power margin", "Ignore hold time (s)", - "(not used) Number of Tuya MCU relays", + "Gratuitous ARP repeat time", "Over temperature threshold (celsius)", "(not used) Tuya MCU max dimmer value", "(not used) Tuya MCU voltage Id", @@ -144,7 +144,9 @@ a_setoption = [[ "PWM Dimmer Turn red LED on when powered off", "PWM Dimmer Buttons control remote devices", "Distinct MQTT topics per device for Zigbee", - "","","","", + "Disable non-json MQTT response", + "Enable light fading at start/power on", + "","", "","","","", "","","","", "","","","", @@ -199,7 +201,7 @@ a_features = [[ "USE_AHT1x","USE_WEMOS_MOTOR_V1","USE_DEVICE_GROUPS","USE_PWM_DIMMER" ],[ "USE_KEELOQ","USE_HRXL","USE_SONOFF_D1","USE_HDC1080", - "USE_IAQ","","","", + "USE_IAQ","USE_DISPLAY_SEVENSEG","","", "","","","", "","","","", "","","","",