Skip to content

Commit

Permalink
Solved issue #6: Ambiguous sentToDisplay(). Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AKJ7 committed Dec 30, 2020
1 parent 8140f0e commit f4051bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/TM1637.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,15 @@ class TM1637 {
mI2C_.beginTransmission();
mI2C_.send(static_cast<uint8_t>(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<uint8_t >(brightness_));
mI2C_.endTransmission();
}

template <DataCommand_e dataCommand, AddressCommand_e addressCommand, typename ... Ts>
void sendToDisplay(Ts ... values) const noexcept
void sendToDisplayRaw(Ts ... values) const noexcept
{
mI2C_.beginTransmission();
mI2C_.send(static_cast<uint8_t >(dataCommand));
Expand Down

0 comments on commit f4051bf

Please sign in to comment.