Releases: jasonacox/TM1637TinyDisplay
Releases · jasonacox/TM1637TinyDisplay
v1.12.2 - Fix Compiler Warnings
What's Changed
- Fix compiler warnings for Arduino PlatformIO and ESP8266 by correcting type mismatches and signed/unsigned comparisons.
- Change loop variables from
inttosize_tinshowString()andshowString_P()functions to matchstrlen()return type. - Add explicit
(int)cast inAnimate()function comparisons to eliminate signed/unsigned warnings. - Fix
m_animation_stringpointer declaration syntax in header files. - Contributed by @stef-ladefense in #48
Full Changelog: v1.12.1...v1.12.2
v1.12.1 - startStringScroll Fix
What's Changed
- Fix startStringScroll for non _p strings with length <= MAXDIGITS by @pistolingo in #45
New Contributors
- @pistolingo made their first contribution in #45
Full Changelog: v1.12.0...v1.12.1
v1.12.0 - Clear Display Option
What's Changed
- Update
begin()function to allow parameter control of display clear and full brightness setting. Default behavior if not specified will betruewhich is the behavior with prior version. - Remove clean and set brightness from begin by @smaryus in #42.
//! Initialize the display, setting the clock and data pins.
//!
//! This method should be called once (typically in setup()) before calling any other.
//! @note It may be unnecessary depending on your hardware configuration.
void begin();
//! @param clearDisplay - Clear display and set the brightness to maximum value.
void begin(bool clearDisplay=true);
void TM1637TinyDisplay::begin(bool clearDisplay)
{
// Set the pin direction and default value.
// Both pins are set as inputs, allowing the pull-up resistors to pull them up
pinMode(m_pinClk, INPUT);
pinMode(m_pinDIO, INPUT);
digitalWrite(m_pinClk, LOW);
digitalWrite(m_pinDIO, LOW);
if (clearDisplay)
{
clear();
setBrightness(BRIGHT_HIGH);
}
}New Contributors
Full Changelog: v1.11.0...v1.12.0
v1.11.0 - Enhanced Character Set
What's Changed
- Enhanced character set #39 by @jasonacox in #40
- Updated character set by @J-Brinkman in #39
display.showString("!-/0123456789<=>?@ABCDEFGHIJKLMmNOPQRSTUVWwXYZ[]^_`abcdefghijklnnnopqrstuvvvxyz{|}~");Full Changelog: v1.10.0...v1.11.0
v1.10.0 - Animation Looping
What's Changed
- Bug Fix: Changed
abs()to long int supportedlabs()inshowNumber()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 withstopAnimation()forTM1637TinyDisplayandTM1637TinyDisplay6classes.
//! 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
- @KelevraSlevin7 made their first contribution in #33
Full Changelog: v1.9.0...v1.10.0
v1.9.0 - Add Non-Blocking Animation for 6-Digit
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
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
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
- @mgesteiro made their first contribution in #29
Full Changelog: v1.7.1...v1.8.0
v1.7.1 - Fix Compile Errors for ESP8266
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
What's Changed
- Add non-blocking animation and string scrolling to 4-digit display by @hackerceo in #24 closes #22
New Contributors
- @hackerceo made their first contribution in #24
Full Changelog: v1.6.0...v1.7.0