Skip to content

Commit

Permalink
Add support for Seven Segment display
Browse files Browse the repository at this point in the history
Add support for Seven Segment display using HT16K33 (#8116)
  • Loading branch information
arendst committed Apr 10, 2020
1 parent 6c16f1c commit 13d7943
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tasmota/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions tasmota/support_features.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions tasmota/tasmota_configurations.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tasmota/xdsp_11_sevenseg.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
8 changes: 5 additions & 3 deletions tools/decode-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"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",
Expand Down Expand Up @@ -144,7 +144,9 @@
"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",
"","",
"","","","",
"","","","",
"","","","",
Expand Down Expand Up @@ -199,7 +201,7 @@
"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","","",
"","","","",
"","","","",
"","","","",
Expand Down

0 comments on commit 13d7943

Please sign in to comment.