Skip to content

Bug Fix for showNumber() Floating Point Placement

Compare
Choose a tag to compare
@jasonacox jasonacox released this 21 Feb 19:44
· 85 commits to master since this release

v1.4.4

  • Bug Fix for showNumber() for floating point numbers where position is greater than zero. Fix applies to both TM1637TinyDisplay and TM1637TinyDisplay6 classes.
  // Example code that demonstrates the bug and fix.

  // showNumber(num, decimal_length, length, pos)
  display.showNumber(9.87, 2, 3, 0);
  display.showNumber(1.23, 2, 3, 3);

Full Changelog: v1.4.3...v1.4.4
Issue: #15