Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Nov 22, 2023
1 parent a385863 commit b5b9c63
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.3.9] - 2023-11-22
- update readme.md
- section about hardware performance (Kudos to SteveMicroCode #29)
- incl badges to platformIO


Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ Library for TM1637 driven displays and key scans.

The TM1637 drives 7 segment displays and can also scan a 16 key keyboard.

Library is tested with Arduino UNO and a 6 digits display and 4 digit (clock) display.
The library is mainly tested with Arduino UNO, both a 6 digits display and 4 digit (clock) display.

ESP32 is supported since 0.2.0 see https://github.com/RobTillaart/TM1637_RT/pull/5


#### Related

- https://docs.wokwi.com/parts/wokwi-tm1637-7segment#simulator-examples
- https://github.com/SteveMicroCode/PIC-TM1637-Library-CodeOn
- includes interesting hardware notes.


#### Hardware connection and performance
Expand All @@ -47,6 +49,8 @@ beyond the specifications of the datasheet.
Interference from other electronic components is often nearby, and if you need longer
cables consider shielded ones.

If you have additional performance tweaks, please let me know.

Note: Ω = ALT-234


Expand Down
4 changes: 2 additions & 2 deletions TM1637.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void TM1637::displayCelsius(int temp, bool colon)
if (_digits != 4) return;
for (int i = 0; i < 8; i++) _data[i] = TM1637_SPACE; // 16
_data[0] = 12; // C
_data[1] = TM1637_DEGREE; // ° degreee sign
_data[1] = TM1637_DEGREE; // ° degree sign

if (temp < -9) temp = -9;
if (temp > 99) temp = 99;
Expand All @@ -299,7 +299,7 @@ void TM1637::displayFahrenheit(int temp, bool colon)
if (_digits != 4) return;
for (int i = 0; i < 8; i++) _data[i] = TM1637_SPACE; // 16
_data[0] = 15; // F
_data[1] = TM1637_DEGREE; // ° degreee sign
_data[1] = TM1637_DEGREE; // ° degree sign

if (temp < -9) temp = -9;
if (temp > 99) temp = 99;
Expand Down
2 changes: 1 addition & 1 deletion TM1637.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TM1637
void displayRefresh();
// EXPERIMENTAL 0.3.8
void hideSegment(uint8_t idx);
void hideMultiSegment(uint8_t mask); // 0 bit = show 1 bit = hide
void hideMultiSegment(uint8_t mask); // 0 bit = show 1 bit = hide


// BRIGHTNESS
Expand Down

0 comments on commit b5b9c63

Please sign in to comment.