Skip to content

Releases: jasonacox/TM1637TinyDisplay

v1.10.0 - Animation Looping

16 Apr 21:05
Compare
Choose a tag to compare

What's Changed

  • Bug Fix: Changed abs() to long int supported labs() in showNumber() method by @KelevraSlevin7 in #33 which fixes overflow situation seen on some cores for showNumber()
  • Added option for non-blocking animation to allow looping sequence via Animate(true) and added method to stop animation with stopAnimation() for TM1637TinyDisplay and TM1637TinyDisplay6 classes.
  //! The event loop function to enable non-blocking animations
  //!
  //! The method returns TRUE when an animation is still occurring, it is
  //! FALSE when there is no animation occurring
  //!
  //! @return A boolean value indicating if an animation is occurring
  //! @param loop If true, keep looping animation when it ends
  bool Animate(bool loop = false);

  //! The function used to stop a non-blocking animation
  //!
  void stopAnimation();

New Contributors

Full Changelog: v1.9.0...v1.10.0

v1.9.0 - Add Non-Blocking Animation for 6-Digit

03 Apr 00:59
Compare
Choose a tag to compare

What's Changed

  • Add non-blocking animation support to 6 digit displays by @hackerceo in #31

Full Changelog: v1.8.1...v1.9.0

v1.8.1 - Add Default Brightness

04 Mar 07:29
Compare
Choose a tag to compare

What's Changed

  • Updated the begin() method to set a non zero default brightness for the display, as suggested in #29 (comment) and submitted by @mgesteiro in #30

Full Changelog: v1.8.0...v1.8.1

v1.8.0 - Add begin() for Initialization

20 Feb 03:04
Compare
Choose a tag to compare

What's Changed

  • Updated library operation to include an initializing method begin() to move hardware related calls outside the class constructor, as reported in #28 and submitted by @mgesteiro in PR #29

Example Best Practice

#include <TM1637TinyDisplay.h>

TM1637TinyDisplay display(CLK, DIO);  // Instantiate TM1637TinyDisplay Class

void setup() {
  display.begin();   // Initialize Display
  display.setBrightness(BRIGHT_HIGH);
}

void loop() {
  display.showString("HELLO");
  delay(500);
}

New Contributors

Full Changelog: v1.7.1...v1.8.0

v1.7.1 - Fix Compile Errors for ESP8266

04 Nov 05:56
Compare
Choose a tag to compare

What's Changed

  • Fix compile errors and warnings on ESP8266 cores (type casts and erroneous defaults in functions) as reported in #26
  • Fix function names for async animation/scroll in keywords.txt by @hackerceo in #25

Full Changelog: v1.7.0...v1.7.1

v1.7.0 - Add Non-Blocking Animation for 4-Digit

19 Sep 05:06
Compare
Choose a tag to compare

What's Changed

  • Add non-blocking animation and string scrolling to 4-digit display by @hackerceo in #24 closes #22

New Contributors

Full Changelog: v1.6.0...v1.7.0

v1.6.0 - Add Buffered Output

01 Aug 05:31
Compare
Choose a tag to compare

What's Changed

  • Display values are kept in persistent buffer for easier updates.
  • Fix colon and decimal display for flipDisplay(true) conditions ( see #18 )
  • setBrightness() immediately updates brightness level (no data refresh needed) by @stef-ladefense in #20
  • flipDisplay() immediately flips current display (no data refresh needed)
  • readBuffer() returns current display segment values

New Contributors

Full Changelog: v1.5.2...v1.6.0

Bug Fix for showNumber Negative Numbers

05 Jun 00:51
Compare
Choose a tag to compare

v1.5.2

  • Fix showNumber() but for negative numbers. Solves issues #17 (thanks to @otpfiste).
  • Fix showNumber() overflow condition for numbers (positive and negative) that do not fit within display length.
  // Example of negative case that did not render correctly
  display.showNumber(-3.1, 1, 3, 1);  // (float num, decimal length, length, position)

  // Overflow Examples - will render a dash display e.g. "----" 
  display.showNumber(-1000);
  display.showNumber(10000000);
  display.showNumber(-333.1, 1, 3, 1);

Added flipDisplay() Function for Device Orientation

11 May 02:29
Compare
Choose a tag to compare

v1.5.0

  • Added support for device orientation, flipping display upside down if selected during
    initialization or through a function call.
  // Flip display
  display.flipDisplay(true);
  display.showNumber(12.34);

Full Changelog: v1.4.4...v1.5.0
Issue #2

Bug Fix for showNumber() Floating Point Placement

21 Feb 19:44
Compare
Choose a tag to compare

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