Skip to content

Commit

Permalink
Update changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Dec 19, 2024
1 parent e4ff661 commit 0d9ce6d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file.
## [14.4.1.1]
### Added
- Command ``SetOption163 1`` to disable display of Device name in GUI header
- Berry `animate.crenel` primitive
- Berry `animate.crenel` primitive (#22673)

### Breaking Changed

Expand All @@ -15,7 +15,7 @@ All notable changes to this project will be documented in this file.
- TLS disable ECDSA for MQTT to ensure we don't break fingerprints after #22649

### Fixed
- Berry Zigbee fix wrong attributes
- Berry Zigbee fix wrong attributes (#22684)

### Removed

Expand Down
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
## Changelog v14.4.1.1
### Added
- Command ``SetOption163 1`` to disable display of Device name in GUI header
- Berry `animate.crenel` primitive [#22673](https://github.com/arendst/Tasmota/issues/22673)

### Breaking Changed

### Changed
- ESP32 disable PSRAM check (and on restart some relay toggles) with `#define DISABLE_PSRAMCHECK` [#21266](https://github.com/arendst/Tasmota/issues/21266)

### Fixed
- Berry Zigbee fix wrong attributes [#22684](https://github.com/arendst/Tasmota/issues/22684)

### Removed
30 changes: 11 additions & 19 deletions tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ enum tm1640_display_options_types {
typedef struct Tm1640_t {
int8_t clock_pin;
int8_t data_pin;
uint8_t brightness;
bool show_clock;
bool clock_24;
bool clock_seconds;
Expand Down Expand Up @@ -177,12 +178,20 @@ void TM1640SetBrightness(uint8_t level) {
// 6 | 5 | 12/16
// 7 | 6 | 13/16
// 8 | 7 | 14/16
uint8_t cmd = TM1640_CMD_DISPLAY | (level > 0 ? 0x8 : 0) | ((level - 1) % 8);
if (level) {
Tm1640->brightness = (level -1) & 7;
}
uint8_t cmd = TM1640_CMD_DISPLAY | (level > 0 ? 0x8 : 0) | Tm1640->brightness;
TM1640Start();
TM1640Send (cmd);
TM1640Stop();
}

void TM1640SetPower(int8_t state) {
uint8_t level = (1 == state) ? Tm1640->brightness +1 : 0;
TM1640SetBrightness(level);
}

/*********************************************************************************************\
* Init function
\*********************************************************************************************/
Expand Down Expand Up @@ -313,26 +322,9 @@ void IoTTimerDim(void)
}


void IoTTimerDisplayOn (void)
{
IoTTimerDim();
}


void IoTTimerDisplayOff (void)
{
TM1640SetBrightness (0);
}


void IoTTimerDisplayOnOff(void)
{
if (disp_power) {
IoTTimerDisplayOn();
}
else {
IoTTimerDisplayOff();
}
TM1640SetPower(disp_power);
}


Expand Down

0 comments on commit 0d9ce6d

Please sign in to comment.