diff --git a/README.md b/README.md index 9bdfac0..f6ae450 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # TM1637 -TM1637 Library Driver for Microcontrollers +TM1637 Library Driver for Microcontrollers. +Warning!!! The TM1637 requires 5V at the DIO and CLK input. Hence connecting it the display to an 3.3 V Controller Board like the ESP32 will not work. +Interfacing the 3.3V output of the DGIO pins of the board to 5V is recommended. ## Features - Supports integers, float and string displaying diff --git a/src/TM1637.h b/src/TM1637.h index 8235da6..becd330 100644 --- a/src/TM1637.h +++ b/src/TM1637.h @@ -178,10 +178,7 @@ class TM1637 { mI2C_.beginTransmission(); mI2C_.send(static_cast(addressCommand)); for (decltype(size) counter{}; counter < size; ++counter) - { (colon_ || (dp_ & (1u << counter))) ? mI2C_.send(values[counter] | 0x80u) : mI2C_.send(values[counter]); - } - mI2C_.endTransmission(); mI2C_.beginTransmission(); mI2C_.send(static_cast(brightness_)); @@ -189,7 +186,7 @@ class TM1637 { } template - void sendToDisplay(Ts ... values) const noexcept + void sendToDisplayRaw(Ts ... values) const noexcept { mI2C_.beginTransmission(); mI2C_.send(static_cast(dataCommand));