[TM1637] Let turn off the display (#6656)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
1 parent
74fd52e05f
commit
6fe328ef2b
2 files changed
+3
-1
No files matched your search
@@ -225,7 +225,7 @@ void TM1637Display::display() {
|
||||
|
||||
// Write display CTRL CMND + brightness
|
||||
this->start_();
|
||||
this->send_byte_(TM1637_CMD_CTRL + ((this->intensity_ & 0x7) | 0x08));
|
||||
this->send_byte_(TM1637_CMD_CTRL + ((this->intensity_ & 0x7) | (this->on_ ? 0x08 : 0x00)));
|
||||
this->stop_();
|
||||
}
|
||||
bool TM1637Display::send_byte_(uint8_t b) {
|
||||
|
||||
Reference in new issue
Block a user